3 ms·
Having indentation inform syntax is a good thing, as demonstrated by the likes of Python and YAML. But meaningful trailing white space (see the multiline strin
by cynwoody 14y ago
Having indentation inform syntax is a good thing, as demonstrated by the likes of Python and YAML.
But meaningful trailing white space (see the multiline string example)? I don't think so ...
- breck 14y agoThat method is optional. You can also do: message This is a multiline string. It can keep going and going. I just thought this looked somewhat nicer: message This is a multiline string. It can keep going and going. However, unless syntax highlighting is present, it can definitely be a source of bugs. But I understand your concern. It is one of my few nitpicks as well. However, the slight problem almost disappears with editors that support Note. Thanks for taking a careful look at Note!
- fruchtose 14y agoHave you considered separating multiline strings with a newline above and blow, with multiline strings indented, like so? from Alice to Bob subject Note formatting body Note is awesome! I like to use it everywhere. XML better watch out. Whitespace is great. return-path bounce@email.com Or, in the case where there is no text below, a newline would have the same visual clarity. from Alice to Bob subject Note formatting body Note is awesome! I like to use it everywhere. XML better watch out. Whitespace is great. Let's get rid of return paths.
- breck 14y agoNo, I had not. That looks pretty good, and seems like it could work...
- slurgfest 14y agoI agree, the idea of putting a single whitespace at the end of the line to signify multiline is terrible. Why not a colon, for example?