Thanks to @seejee for making this for me!!!
The goal of this is to have an easily-scannable reference for the most common syntax idioms in C# and Rust so that programmers most comfortable with C# can quickly get through the syntax differences and feel like they could read and write basic Rust programs.
What do you think? Does this meet its goal? If not, why not?
Download hMailServer from here: http://www.hmailserver.com/index.php?page=background_download_file&downloadid=207.
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| "net/url" | |
| ) | |
| const ( |
| require 'rest-client' | |
| require 'json' | |
| url = 'https://api.github.com/search/repositories?' | |
| q = 'jaquiel' | |
| language = 'typescript' | |
| resp = RestClient.get "#{url}q=#{q}&language=#{language}" | |
| puts JSON.parse(resp.body)#["items"][0]["description"] |
| /** | |
| * Welcome to Deno with JavaScript | |
| */ | |
| const hello = "Hello there..." | |
| console.log(hello) | |
| console.log("Welcome to Deno 🦕"); |
| /** | |
| * Welcome to Deno with TypeScript | |
| */ | |
| const hello: string = "Hello Deno..." | |
| console.log(hello) | |
| console.log("Welcome to Deno 🦕"); |
| /** | |
| * Node.js server | |
| * with express.js framework | |
| * and routing | |
| */ | |
| const express = require('express') | |
| const app = express() | |
| app.use(express.json()) |