9 ms·
It has no algebraic data types and pattern matching.
by kryptiskt 8y ago
It has no algebraic data types and pattern matching.
- andrewchambers 8y agoSomeone wrote pattern matching as a macro - nim is pretty powerful.
- mooreds 8y agoThis library? https://andreaferretti.github.io/patty/ https://andreaferretti.github.io/patty/
- andrewchambers 8y agoThat's the one.
- ColinWright 8y agoDo you have a reference for that immediately to hand, or should I search for it ...
- chi3 8y agoThis 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.
- mratsim 8y agoWhat algebraic datatypes is Nim missing? It has generics, tuples, tagged and untagged unions, it even has C++20 concepts.