TIL that C++03 considered a file without a trailing newline to be undefined behaviour! https://stackoverflow.com/a/72377
This was fixed in C++11, but the problem was that #include was a textual operation that could produce invalid syntax if no newline was present.
miniblog.
Related Posts
I've released difftastic 0.46! In this release:
* Ada support
* Support for Arduino C++, better TOML handling, and a ton of upstream grammar updates
* Fixed several nasty corner cases with trailing whitespace or binary/UTF-16 confusion
I'm surprised I've never seen a lisp dialect where it's idiomatic to use trailing parens as you would in C.
(foreach car cars
(drive car)
)
It makes structure very visible when you're trying to add a new expression.
IDEs help, but is the ))) density always compelling?
I'm beginning to prefer JS without trailing semicolons. If you know the (rare) gotchas, it's less to read and type.

