That's entirely subjective, there are a lot of people who have the same negative opinion about 'whitespace matters' languages. I switch between Python and 'curly brace languages' all the time, it's really not an issue after the first three hours or so (but I still miss sometimes that I can't throw in temporary debug code into python with different intendation so that it stands out).
Same with semicolons btw, some people make a big fuzz about it, but in the real world it really doesn't matter, especially with how common real-time linters are nowadays (which helps me a lot because I sometimes accidentally end a line in python with a semicolon).
I find whitespaced code harder to read. Autoformatters like Prettier make brace-based langs really easy to read and parse.
Re:Some Thoughts on Zig
by yellowapple on Saturday July 23, 2022 @12:17AM
(#32200309)
> Why they still need braces , braces are always hard to read the code
I'm of the opposite opinion. I very much prefer braces or some other block delimiter over having to slap a ruler on my screen to know which scope I'm in.
Re:Some Thoughts on Zig
by 5d8767c68926 on Friday July 22, 2022 @02:42AM
(#32189229)
Nim?
Because code formatters cannot work on whitespace languages like Python. They can't adjust the indentation for you because they have to assume that the given indentation is intended.
It also makes a lot of other automatic tools for dealing with source code harder to write, if not impossible.
Re:Some Thoughts on Zig
by chriskrycho on Friday July 22, 2022 @12:37PM
(#32193974)
This is simply not true.There are highly-used and highly-usable formatters for Python, Elm, Haskell, F♯, etc., all of which are whitespace-sensitive/indentation-dependent languages. "Adjusting indentation" is far from the only thing formatters do, and even things like breaking or wrapping expressions over multiple lines can certainly be done in all of these languages.
adjusting indentation may be "far from" the only thing your formatters do, but it's the only thing i ever want mine to do
I think you might have got that flipped around. I've known many more people that found white-spaced based languages harder on the eyes and more annoying to deal with.
Re:Some Thoughts on Zig
by Schroedingersat on Friday July 22, 2022 @03:42AM
(#32189557)
Zig has a canonical format where braces match indentation.
You could probably make some simple tooling such that you never saw braces.
A native , non inerpreted , high performance whitespaced lang with memory safety , as simple as python would rule .