Why HTML/JavaScript/CSS are not compiled languages and will they ever be?

后端 未结 9 1305
死守一世寂寞
死守一世寂寞 2021-01-31 02:36

Why HTML/JavaScript/CSS are not becoming compiled languages (or maybe even merge into a single compiled language)? What if browsers were running \"Browser Virtual Machine\" and

9条回答
  •  盖世英雄少女心
    2021-01-31 03:23

    HTML

    HTML is pretty much XML. DTD'd exist for various versions and developers can check against that at any time.

    CSS

    CSS is not a programming language, however I do agree that "compiled" CSS could work seeing as compilation would compress it. However with the support that CSS has and with the number of essential hacks any CSS needs to have, you'd never manage to compile it without errors.

    JS

    As others have mentioned, JS IS becoming a compiled language except the browser compiles it for you and not you yourself.

提交回复
热议问题