News for hackers. Stuff that matters.
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
Re:Writing code with MS Paint by gaius on Wednesday April 06, 2011 @12:08PM (#2415651)
Haha brilliant! Why didn't they adopt this? Or is there a C++ compiler that does support it?
Re:Writing code with MS Paint by jcl on Wednesday April 06, 2011 @01:43PM (#2416060)
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. ;)

Re:Writing code with MS Paint by gaius on Wednesday April 06, 2011 @02:54PM (#2416408)
You've not used APL then ;-)

Nesting comments is always a pain in the arse, and \\ would make it unnecessary.

Re:Writing code with MS Paint by ot on Wednesday April 06, 2011 @01:51PM (#2416095)
Have you noticed the publication date, in the abstract?