6 ms·
I think Deno also standardized on two spaces for indents and I find that’s not enough to be able to quickly identify the structure of code at a glance. Is Nim
by schemescape 4y ago
I think Deno also standardized on two spaces for indents and I find that’s not enough to be able to quickly identify the structure of code at a glance.
Is Nim requiring this at build time? If so, that would be an odd choice for a language that goes out of its way to let people call functions, capitalize variables, and manage memory however they want.
- 000ooo000 4y agoYou can name your symbols a_b_c, ABC, abc, or aBc - it's all the same! Tabs for whitespace though..? Don't be stupid
- ElegantBeef 4y agoWell there is a practical reason that in a whitespace significant language you do not want to mix indentation types. I personally prefer tabs for the user customization, but the actual reasoning that generally speaking it was(is?) hard to get tabs to render as you want in a multitude of environments whereas spaces always render as is. Quick someone reset the inane "Days since mentioning style insensitivity".
- 000ooo000 4y agoWould it be silly to suggest that a joke about a counter for "Days since mentioning style insensitivity" might point to a legitimate gripe many folk have with the language?
- deleted 4y ago[deleted]
- xigoi 4y agoIt's not a “legitimate gripe” if you can safely ignore it and it won't affect you (as long as you use a consistent naming style).
- otherme123 4y agoMy new hobby is replying on every Rust post pushing to replace :: with another symbol. Barely use Rust, don't plan to, but it sounds funny to annoy them on the smallest bikeshed I can find.
- pietroppeter 4y agodone :) https://fosstodon.org/@pietroppeter/110118215100751621 https://fosstodon.org/@pietroppeter/110118215100751621
- ElegantBeef 4y agoIndent size is up to the programmer.