News for hackers. Stuff that matters.
Re:PHP as sexy as Scheme using lambdas and recursion by rbanffy on Monday August 24, 2009 @02:43PM (#782908)
I would prefer if such approach was taken to ease a gradual reimplementation.

The risk of this just making the codebase even uglier is enormous.

Re:PHP as sexy as Scheme using lambdas and recursion by omouse on Monday August 24, 2009 @03:07PM (#782971)
I thought about that too. There are programs that can handle making PHP or C beautiful. GNU indent is one of them I think, and there's another one called TidyPHP? Something like that.

So you just generate and then run the code through that if you need it to be human readable. I assume most companies don't give a shit as long as it works ;)

Re:PHP as sexy as Scheme using lambdas and recursion by rbanffy on Monday August 24, 2009 @05:04PM (#783350)
I fear a Scheme to PHP code generator would turn out PHP code that's ugly beyond what any code beautifier could hope to fix. It's not make-up - it would be akin to major surgery.
Re:PHP as sexy as Scheme using lambdas and recursion by omouse on Monday August 24, 2009 @09:27PM (#783882)
I'm sure it would only require indent fixing if coded properly.