Updated Nimrod for C programmers (markdown)

This commit is contained in:
Audun Wilhelmsen 2013-12-20 00:32:23 -08:00
parent a75aec0dde
commit f2c74b90e3
1 changed files with 19 additions and 0 deletions

View File

@ -29,6 +29,25 @@ Note: Code examples are not exactly one-to-one, there may be subtle differences
</tr>
<tr>
<td>
```C
int x;
int y = 2;
```
</td>
<td>
```Nimrod
var x : int
var y1 : int = 2
var y2 = 2
let z = 2
```
</td>
<td><b>Define variable</b>. y2 uses type inference. z is single-assignment.</i>
</td>
</tr>
<tr>
<td>
```C