Re:Writing code with MS Paint
by ot on Wednesday April 06, 2011 @10:19AM
(#2415147)
If C++ supported the backwards comment "\\" meaning "everything before this is a comment" described by Stroustrup in http://www2.research.att.com/~bs/whitespace98.pdf, it could be compilable right out of Paint
[ Parent
| on HN ]
Haha brilliant! Why didn't they adopt this? Or is there a C++ compiler that does support it?
That doesn't strike you as a really bad idea? Quite apart from the maintenance nightmare, consider what happens if you need to include a backslash in a string.
Read the paper... It also proposes limiting all identifiers to one character, using Wingdings as variables, and overloading whitespace as an operator. ;)
You've not used APL then ;-)
Nesting comments is always a pain in the arse, and \\ would make it unnecessary.