Updated Nimrod for C programmers (markdown)
This commit is contained in:
parent
a75aec0dde
commit
f2c74b90e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue