3 ms·
Thank you for your hard work making my favorite programming language even better. I completely agree with all your points on significant whitespace for program
by pilaf 4y ago
Thank you for your hard work making my favorite programming language even better.
I completely agree with all your points on significant whitespace for programming languages. Where I think it makes a lot more sense though is for structured static data. My quality of live would be worsened without the likes of Haml, Sass and YAML.
- schneems 4y agoThanks for the note! I enjoy using slim in my views though prefer scss to sass. I think for many of those tools either misindentations raise an error (like failing a yaml schema validation) or result in incorrect but observable behavior (content isn’t in a div as expected). It really comes down to how the tool is supposed to be used and how failures are handled. In general I think that’s the difference between a good experience and a great one: when we can have beautiful failures that help us learn.
- still_grokking 4y ago> I completely agree with all your points on significant whitespace for programming languages. Where I think it makes a lot more sense though is for structured static data. This makes no sense. If the arguments against significant whitespace are valid for executable code they're also valid for markup. If it's fine to use significant whitespace for markup / data literals even the perceived drawbacks apply than it would be equally fine for executable code.
- pilaf 4y agoYou've got a point. I was mostly thinking about the "copy-pasting into the REPL" argument, which is a problem unique to executable code, at least in my experience.