Re:Ana is a Python, PHP, and C inspired dynamically typed sc...
by xigoi on Wednesday April 13, 2022 @04:49AM
(#31012470)
Being forced to use a certain style is a good thing. There's less arguing. Haskell is also indentation-based and requires spaces.
[ Parent
| on HN ]
Re:Ana is a Python, PHP, and C inspired dynamically typed sc...
by bodge5000 on Wednesday April 13, 2022 @05:02AM
(#31012526)
You only tend to find that when the style your being forced to use happens to align with your own style, or you don't use the language/tool and therefore aren't affected by it.
In my experience, a lot of programmers will shout from the rooftops about the importance of consistency until the agreed upon standard isn't their standard, at which point consistency is no longer the most important matter at stake.
Re:Ana is a Python, PHP, and C inspired dynamically typed sc...
by brushfoot on Wednesday April 13, 2022 @06:03AM
(#31012875)
> You only tend to find that when the style your being forced to use happens to align with your own style
My style is consistency. I'm happy to use any language that enforces that rather than leaving room for bikeshedding, even if the aesthetics aren't my personal favorite. Better than wasting time debating e.g. tabs vs. spaces.
Re:Ana is a Python, PHP, and C inspired dynamically typed sc...
by xigoi on Wednesday April 13, 2022 @05:07AM
(#31012550)
That's not true. For example, I prefer 2-space indents, but I use 4-space indents in Python because that's the convention.
Re:Ana is a Python, PHP, and C inspired dynamically typed sc...
by syockit on Wednesday April 13, 2022 @07:55AM
(#31013578)
Paired with a characters-per-line limit, 4-space indents forces you to better modularise your so that it doesn't nest too deep (which usually happens when your code is becoming too complex) so I guess that's the wisdom behind the convention.
Re:Ana is a Python, PHP, and C inspired dynamically typed sc...
by mywittyname on Wednesday April 13, 2022 @11:31AM
(#31015871)
Do people seriously not adapt to the code style they work with?
I have to deal with different coding styles at every work place, and it takes me all of a week to forget any objections I had to it when I started.