News for hackers. Stuff that matters.
Re:Why Crystal Is My Next Language by siddhant on Sunday June 10, 2018 @11:47PM (#17281613)
Nim is pretty amazing. I spent last week writing some toy programs and it reminded me of Python - in the sense that it allowed me to write working code within a few hours of picking up the language.

The “optional namespaces” thing is something which bugs me a lot though. That importing a module works similar to `from module import *` in Python. It makes code confusing to read and grasp IMO (which module does this symbol come from?). Other than that, a pretty cool language.

Re:Why Crystal Is My Next Language by dom96 on Monday June 11, 2018 @08:44AM (#17283736)
> The “optional namespaces” thing is something which bugs me a lot though. That importing a module works similar to `from module import *` in Python. It makes code confusing to read and grasp IMO (which module does this symbol come from?). Other than that, a pretty cool language.

This is a common complaint, but there is rarely a solution proposed alongside the complaint. Nim is significantly different from Python to warrant these semantics, but I am really open to hearing ideas of how this could be improved keeping in mind these differences (operator overloading, no classes).

A recent proposal was made here, and it looks like it will be adopted, I'd love to know what you think about it:

https://forum.nim-lang.org/t/3783