5 ms·
For me, personally, the biggest points for Nim are: - "Transpiled" to C, with some options regarding runtime library, which means you can target any uControlle
by _0ffh 7y ago
For me, personally, the biggest points for Nim are:
- "Transpiled" to C, with some options regarding runtime library, which means you can target any uController out there
- Good metaprogramming support
- Static and _strong_ typing
- Consequently, precise type aware function dispatch
- Type inference
- Good generics
Also, more stuff like covariants and contravariants and... maybe you just have a look-see? ;-)
- nfrankel 7y agoI'm already quite invested in Kotlin, and having a look at Elixir... on top of my regular work. Time is a limiting factor :-)
- egeozcan 7y agoThere are "concepts" which are like generics but still experimental. Are there any other generic programming facilities in nim? https://nim-lang.org/docs/manual_experimental.html#concepts https://nim-lang.org/docs/manual_experimental.html#concepts
- narimiran 7y ago> Are there any other generic programming facilities in nim? https://nim-lang.org/docs/manual.html#generics https://nim-lang.org/docs/manual.html#generics
- egeozcan 7y agoWhat I wanted to write was something like type restricted generics, apparently I ended my comment prematurely. Without concepts (interfaces), I find it hard to call this system "good generics" but there might be something I'm missing.