News for hackers. Stuff that matters.
Re:Why Use Nim over C#? by xupybd on Wednesday March 01, 2023 @05:14AM (#34980686)
Does Nim really have no competition in the meta programming space? I assumed Haskell would do well there?
Re:Why Use Nim over C#? by jb1991 on Wednesday March 01, 2023 @05:19AM (#34980724)
Also zig, meta programming is one of its key features from what I understand.
Re:Why Use Nim over C#? by kitd on Wednesday March 01, 2023 @05:24AM (#34980758)
D too. D templates are dangerously easy to use.
Re:Why Use Nim over C#? by jb1991 on Wednesday March 01, 2023 @10:53AM (#34983663)
Why dangerous?
Re:Why Use Nim over C#? by kitd on Wednesday March 01, 2023 @12:12PM (#34984940)
Template metaprogramming facilities have a reputation for being a very powerful tool if used judiciously. If overused, they can lead to over-complexity though. And a template system that is as easy to use as D's might encourage overuse.
Re:Why Use Nim over C#? by rakoo on Wednesday March 01, 2023 @05:25AM (#34980767)
ruby is notorious/famous for monkeypatching everything and the simplicity of creating DSLs
Re:Why Use Nim over C#? by freilanzer on Wednesday March 01, 2023 @06:12AM (#34981061)
Presumably you're only asking about statically typed languages, right? Otherwise Julia, and every Lisp come to mind. Especially compared to Lisp all other languages are inferior when it comes to meta programming.
Re:Why Use Nim over C#? by francisl on Wednesday March 01, 2023 @03:05PM (#34987534)
swift and kotlin are slowly getting there.