Updated Common Criticisms (markdown)
This commit is contained in:
parent
11c671aafc
commit
11456d75e3
|
@ -9,4 +9,4 @@ var b: T = ...
|
|||
foo(b) # also valid and equivalent
|
||||
```
|
||||
|
||||
Note that the difference between what happens in Java and what Nim does is simply a matter of efficiency: Nim does not require our `T` to be allocated on the heap.
|
||||
Note that the difference between what happens in Java and what Nim does is simply a matter of efficiency: Nim does not require our `T` to be allocated on the heap, and it certainly allows `b` to be declared with `let`, which will force an compile-time error to be thrown.
|
Loading…
Reference in New Issue