3 ms·
I'm automatically going to be interested in any language with significant white space because there are very few mainstream ones and I hate the visual clutter t
by scotty79 1y ago
I'm automatically going to be interested in any language with significant white space because there are very few mainstream ones and I hate the visual clutter that block delimiters create. Pretty much there's just Python. Scala 3 can happily do both.
I think we'd be better off if text editors just had option of representing braces and such as consistent indentation. Block delimiting tokens should optionally have semantics of non directly printable characters like new line or tab.
- pklausler 1y agoYou'd love Haskell, which uses curly braces for many constructs, but also has rules by which they are implied by indentation -- so in practice you only ever see them on records.
- scotty79 1y agoI'm not sure. The semantics is too wild to care about indentation or delimiters. I love Scala 3 though. Very rich and flexible language.
- recursivecaveat 1y agoI love python syntax overall, absolutely despise Haskell. Wastes my time constantly and gives me incomprehensible compiler errors when you screw it up. Expression oriented languages are really poorly suited for whitespace imo, unless they're hyper-regular like s-expressions: I could imagine a decent whitespace-based version of those.
- baranul 1y agoA language that can do both Python and C "styles" is Ring. It is possible. But the issue is people have such a strong preference for one or the other, that they force the language and developers to permanently choose. Even Allman versus K&R or tabs versus spaces are huge battles, without even going into significant white space.