New language on top of PHP?

前端 未结 12 1965
甜味超标
甜味超标 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条回答
  •  独厮守ぢ
    2021-01-30 02:49

    It is here now. A new language which is to PHP what CoffeeScript is to Javascript. (I.e., awesome.)

    SNOWSCRIPT

    Snowscript code looks like this:


    fn how_big_is_it(number)
        if number < 100
            <- "small"
        else
            <- "big"
    

    PHP output looks like this:


    function how_big_is_it($number) {
        if ($number < 100) {
            return "small";
        } else {
            return "big";
        }
    }
    

    All it needs now, is you.

提交回复
热议问题