Hacker News new | ask | show | jobs
by niteshade 4648 days ago
I think its ugly?
2 comments

It's as efficient as you can possibly get with PHP .. how is that ugly? Ugly because it doesn't remind you of Python, Ruby or whichever language you prefer?
Yeah, mostly. Also because its how it should have been done. PHP Internals should strive to clean up PHP to conform to my work ;)
Nothing wrong with that attitude at all! Especially when backed up with code. Keep up the good fight .. but I would suggest you implement this as an extension.
Yeah, I think that'll be the way to go. There's apparently a new way of writing extensions, might've gotten slightly more bearable since you last looked at it :)
I think converting numbers to objects and back is ugly.

And insanely inefficient. For this particular example it must be orders of magnitude slower.

Well yeah, efficiency wasn't the aim.
OK, if I never need to write insanely slow object oriented code for no good reason, I will download your "library".
Don't be a dick, dude.