X Sharp
Thursday, January 22, 2009 21:18:07
There's a new programming language out there, called X# (X-Sharp). It's a programming language made up almost entirely of XML. Normally I'm a huge fan of XML - it is a single format for describing data, markup, configuration, and any of a dozen other purposes. But to use XML as a full programming language? That's a little absurd.
Here's a sample of what you can do with X#:
<xsp:pi xmlns:xsp="http://www.xsharp.org/2008/xxxml">
<xsp:variable name="lang" type="string" select="'russian'"/>
<library>
<xsp:switch>
<xsp:case test="$lang = 'english'">
<book name="English dictionary" price="45.50"/>
</xsp:case>
<xsp:case test="$lang = 'spanish'">
<book name="Aprenda Espanol en 1 manana" price="40.29"/>
</xsp:case>
<xsp:case test="$lang = 'russian'">
<book name="OANH R3BLK HEAOCTATOHHO" price="37.45"/>
</xsp:case>
</xsp:switch>
</library>
</xsp:pi>
I don't know about you, but I find real languages much easier to read - I couldn't imagine trying to write this nonsense.
Of course, X# is nowhere near the craziest progamming language out there. There are dozens of languages that people built for the sole purpose of being worthless and crazy languages. Some examples are:
- Whitespace: My personal favorite: A language composed entirely of whitespace (space, tab, newline).
- Java2K: A language whose functions only have a certain probability of doing what you intend it to.
- brainf*** (Reader discretion advised): A programming langauge made up entirely of punctuation.
- LOLCode: Written by an expert at the ridiculous "language" known as LOLSpeak.
- Var'aq: A Klingon programming language.
Tags: programming tech
Comments:









