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

I also had code generators at google that had to generate code that followed the line limit.

That's an unusual requirement for a code generator. What is the purpose?

Generated code generally is not read by humans or checked into source control. I suppose in the rare event where you want to read the code you could rely on your editor's line wrapping feature.



Just to choose an open source example: JET generated code from the Eclipse Modeling Framework is generally expected to be checked in, read, and edited by humans.




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

Search: