6 ms·
I have created a programming language that is written in XML. With a decent editor (I use oxygen xml) and a good schema (I use Relax NG) there is almost no way
by patrickg 16y ago
I have created a programming language that is written in XML. With a decent editor (I use oxygen xml) and a good schema (I use Relax NG) there is almost no way to make syntax errors and typing is a breeze (auto completion). With schematron you can even make clever (semantic) error checking before compile time. So it always depends on the case.
- j_baker 16y agoI don't doubt that you could write a DSL that someone would be productive with. But then you'd need to keep a psychiatrist on staff to make sure the people using it don't go crazy. If we're talking about a full on, general purpose language, then you might as well start them on Thorazine ahead of time. Otherwise, you risk a programmer going postal. In short, don't risk your or your coworkers' safety. Just say no to XML as a programming language.
- patrickg 16y agoI know several people that are productive with that language without a psychiatrist. Take for example XSLT. You are saying that all XSLT programmers are mad?
- j_baker 16y agoNot at all. However, if they enjoy it, I'm not convinced they're sane either.
- patrickg 16y agoSo everyone who is not mainstream is subject to not being sane? What a strange hacker attitude...
- j_baker 16y agoThe point I'm trying to make is that while I'm sure you could make an XML-based DSL that does its job, I don't think anyone would enjoy using it over an alternate way of implementing the language. Thus, being forced to program in it would drive them insane.
- siika2000 16y agoAre you sure you haven't misspelled you nick when registering? I mean, g and b are like right next to each other...