Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

New drugs may be required so programmers won't notice the monstrosities going on.

What's the deal with const char *KernelSource = HUGE_MULTILINE_STRING_WITH_EXPLICIT_\n ???

Its worse than SQL statements embedded inside GUI event handlers.



It's very similar to OpenGL actually. I can't defend their choice of syntax, but at least they're consistant.


That depends on the language bindings, I guess. In a language with first class expression trees (like s-expressions) you could do this cleanly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: