New language on top of PHP?

前端 未结 12 1739
甜味超标
甜味超标 2021-01-30 02:39

I\'m a PHP developer. I like PHP! It is a really good language if you know how to use it, but I know it allows very bad design sometimes.

It reminds me of JavaScript whi

12条回答
  •  -上瘾入骨i
    2021-01-30 02:48

    I can see writing compilers to JavaScript (because the web imposes it upon us), but this sounds like a waste of time.

    Haxe already does this, although it's not specifically targeted at PHP (linked to the Wikipedia article instead of their website because I'm afraid I'm going to get exploited if I visit the real site...)

    PHP is easy to deploy anywhere

    ...as are its vulnerabilities.

    I know it allows very bad design sometimes.

    That's a bit of an understatement, it doesn't even have a module system, has no encapsulation, and has tons of silly things such as dynamic name resolution.

    PHP is slow enough as it is, do you really want something an order of a magnitude slower?

    Java is much more easy to deploy anyways, and lets you drop down to the bytecode level if you want. Java also gives you access to moderately sane libraries.

提交回复
热议问题