4 ms·
> Ah you reminded me. A curious phenomenon I've observed with Prettier in JS and fmt in Go is languages are moving to standardized whitespace, but as you said,
by tikkabhuna 4y ago
> Ah you reminded me. A curious phenomenon I've observed with Prettier in JS and fmt in Go is languages are moving to standardized whitespace, but as you said, not yet deriving information from it. I don't know enough about Java or Rust but I suspect they probably both have adopted a Prettier/fmt like convention where all code is formatted on save. So it seems like we are moving to a world where it will be a simple flip of a switch to then start having popular languages extract meaning from the whitespace.
But why would I want to extract meaning from whitespace if I have all the information I need from other mechanisms (eg. braces, brackets, keywords)?
- still_grokking 4y agoYou got this the wrong way: You can then leave out the redundant information. As (I strongly hope) you won't leave out the formatting and start to write everything on a single line, the obvious thing to do than is to leave out the superfluous block delimiters.