4 ms·
Its a good question readers of the English language can also infer punctuation where needed it's not considered good style to make readers infer this there can
by RyanCavanaugh 10y ago
Its a good question readers of the English language can also infer punctuation where needed it's not considered good style to make readers infer this there can be some oddness if you are not used to putting punctuation where it belongs naturally garden path sentences can result and some tools can detect ambiguity automatically but why learn some custom rules for that when its straightforward to consistently put periods at the end of sentences
- robertbenjamin 10y agoDamn, this is clever! Except that 'punctuation' in JavaScript comes in the form of a line break, and adding a semicolon is like adding two periods to the end of every sentence just in case someone missed the first one.
- draw_down 10y agoOh, don't be silly. I'm not talking about prose.
- RyanCavanaugh 10y agoExcept for all the times it isn't, which you still have to remember or have enforced by a tool.
- wolfgang42 10y agoConsider, however, the style commonly used on chats such as IRC This sort of writing generally leaves off periods on the ends of sentences sometimes, it even leaves off the capitalization at the beginning, as well and yet it manages to be entirely readable and generally unambiguous This is remarkably similar to js's automatic semicolon insertion: if the sentence makes more sense with a period at the end of the line then the reader usually inserts one automatically, without thinking about it