Minor change

This commit is contained in:
Federico Ceratto 2015-04-06 17:57:01 +01:00
parent 76049d9729
commit 09e6557f6d
1 changed files with 7 additions and 3 deletions

View File

@ -29,7 +29,7 @@ Types | Dynamic | Static
Dependent types | - | Partial support
Generics | Duck typing | Yes
int8/16/32/64 types | No | Yes
Bigints | Yes (transparently) | Yes (via nimble package)
Bigints (arbitrary size) | Yes (transparently) | Yes (via nimble package)
Arrays | Yes | Yes
Bounds-checking | Yes | Yes
Type inference | Duck typing | Yes (extensive support)
@ -107,8 +107,7 @@ That will return a compilation error, because the objects have different sizes.
So, when using inheritance, be sure to inherit using refs, unless you know what you are doing. Also, check out Nim's generic programming capabilities as an alternative to OOP and inheritance.
## Data structures
## From Python to Nim
### Python tuples
@ -124,3 +123,8 @@ The Nim set type is faster and memory-efficient.
### Dictionaries
Use [HashSet](http://nim-lang.org/sets.html)
### ABC
See[this](http://rosettacode.org/wiki/Abstract_type#Nim)