Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sqlserver2008
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
sqlserver2008
2mo ago
Sure but even with no code indentation at all, an auto-formatter can easily indent everything for you because of the braces. If you have poorly indented code in a language like Python, you're on the hook for indenting everything yourse
2.
▲
by
sqlserver2008
4y ago
>first example is a syntax error The code runs so it's most definitely not a syntax error. May be against PEP styling rules, but it is valid Python code. >which must be fixed, and takes a second. And that was my earlier point. Th
3.
▲
by
sqlserver2008
4y ago
>Two ways to delimit blocks is redundant. It isn't redundant though because without delimiting symbols for a code block you lose the ability to have your code autoformatted in certain situations. Here's a trivial example to ill
4.
▲
by
sqlserver2008
4y ago
Was it this review? https://slatestarcodex.com/2017/04/25/book-review-the-hungry... This also lines up with my anecdotal experience, and the best boring food I've ever found were potatoes. I used to avoi
5.
▲
by
sqlserver2008
4y ago
> OCaml isn't indentation sensitive, so doesn't suffer from this True, I was just making the point that the lightweight syntax of indentation-sensitive languages like Python can be problematic. I don't know how OCaml is ab
6.
▲
by
sqlserver2008
4y ago
Indentation-sensitive syntax is totally obsolete in a world with autoformatters. In addition, with this kind of syntax you also lose the ability to have your code autoformatted in certain situations. Here's a trivial example to illustr