26 ms·
What specifically horrifies you about it? There are a lot of utility functions in PHP that aren't built-in to Javascript. I've used it a little by looking at th
by Scriptor 17y ago
What specifically horrifies you about it? There are a lot of utility functions in PHP that aren't built-in to Javascript. I've used it a little by looking at the source for the code and tweaking things here and there.
This isn't really a way to turn Javascript into PHP. PHP simply has a lot of functions that are handy. Some problems that I can think of are that it brings in PHP's namespacing and lack of naming conventions, but these can be fixed if a developer only incorporates one function at a time when he or she needs it.
- calambrac 17y agoSome problems that I can think of are that it brings in PHP's namespacing and lack of naming conventions. That's a part of it, along with some of the kind of weird function semantics, along with just the general idea of "Hey, we should port all the built-in PHP functions to Javascript!" followed by it actually getting done. If the idea was simply "let's port the useful functions in PHP that makes sense for javascript", that would be one thing. As that idea is actually a subset of this project, no harm done, I guess. Thank goodness we finally have "die" for javascript, right?