Hacker News new | ask | show | jobs
by empressplay 532 days ago
> Because HTML looks easy and lacks features like formal conditional logic and Turing-completeness, it’s often dismissed as not a programming language.

Uh, yes? It's _not_ a programming language, it's a markup language. It's kind of in the name.

1 comments

It's a declarative programming language. Saying it's "in the name" is a meme, it was named that before it supported scripting.
And when it added scripting, it did so by adding an actual programming language.
Does being Turing Complete enable you to have a programming language ins8de a programming language?
They're orthogonal; you can add

* turing in non-turing (javascript on html)

* non-turing in turing (ebpf on c)

* turing in turing (lua on c)

* non-turing in non-turing (raw html in a markdown document)

Also HTML in JS in HTML