Re:A Programming Language Underdog
by kryptiskt on Saturday September 22, 2018 @06:58AM
(#18045484)
It has no algebraic data types and pattern matching.
[ Parent
| on HN ]
Re:A Programming Language Underdog
by andrewchambers on Saturday September 22, 2018 @07:12AM
(#18045516)
Someone wrote pattern matching as a macro - nim is pretty powerful.
This library? https://andreaferretti.github.io/patty/
Re:A Programming Language Underdog
by andrewchambers on Saturday September 22, 2018 @10:46AM
(#18046170)
That's the one.
Re:A Programming Language Underdog
by ColinWright on Saturday September 22, 2018 @08:21AM
(#18045715)
Do you have a reference for that immediately to hand, or should I search for it ...
What algebraic datatypes is Nim missing?
It has generics, tuples, tagged and untagged unions, it even has C++20 concepts.
This is enough to make me keep using C++ for the use cases where Nim is meant to shine, or choose Rust instead. If I'm to learn a modern language, I really expect it to support modern paradigms.
I can see why it'd be interesting to someone with no C/C++ knowledge to get into systems programming though.