News for hackers. Stuff that matters.
Re:John Carmack on Inlined Code by mnarayan01 on Friday September 26, 2014 @07:06PM (#8375358)
The #region directive in c# is pretty awesome for this and I really wish every language had something similar. Sadly I'm not sure there's a great way to do it for e.g. ruby and obviously the situation would be even worse for homoiconic languages.
Re:John Carmack on Inlined Code by ripter on Friday September 26, 2014 @07:57PM (#8375514)
Re:John Carmack on Inlined Code by FLUX-YOU on Friday September 26, 2014 @09:28PM (#8375728)
Man, he's lucky he's never had to deal with a 12k lines in the main executable. Regions are a godsend there.
Re:John Carmack on Inlined Code by mattmanser on Saturday September 27, 2014 @09:26AM (#8376957)
I used to use them, but now I view #regions as a massive code smell.