5 ms·
Seriously? Are tuh-mey-tohs and tuh-mah-tohs completely different fruits?
by mjgoins 17y ago
Seriously? Are tuh-mey-tohs and tuh-mah-tohs completely different fruits?
- troels 17y agoDepends on your definition of "programming language" as well as "markup language". One could argue that XML isn't anything but a specification of a syntax (Similar to s-expressions). But then "markup language" is an imprecise term (regardless of what the abbreviation stands for). It's a "syntax". So, if by "markup language" you mean "syntax", then I'll give that they are different categories, but then I would also argue that you're using the wrong word.
- scott_s 17y agoMarkup language: describes content. Programming language: performs tasks. There are languages that fit both (such as Tex, and consequently, Latex), but this does not preclude us from drawing a distinction between the two in clear-cut cases (such as HTML versus C).
- troels 17y ago> ... drawing a distinction between the two in clear-cut cases (such as HTML versus C). If anything, declarative languages (or markup languages if you prefer) are a sub-category of programming languages. Imperative languages are another sub-category.
- scott_s 17y agoTo me, a "programming language" is a language that allows me to express computations. Markup don't need any concept of computation, so I don't consider them programming languages.
- mustpax 17y agoWell, to the Von Neumann architecture, data and instructions are all the same. Just a matter of where the Program Counter points to. Also both XML and XSLT are interpreted. Meaning a real program reads the source and manipulates the system accordingly. I really have no problem treating the two as equivalent.
- sparky 17y agoFor Princeton architectures, anyway :P http://en.wikibooks.org/wiki/Microprocessor_Design/Computer_Architecture#Harvard_Architecture http://en.wikibooks.org/wiki/Microprocessor_Design/Computer_...
- deleted 17y ago[deleted]