Stefan Tilkov's Random Stuff

X#

Via Werner Vogel, I came across this paper about X#, a new programming language for the CLR.

The basic idea is similar to the one in ECMAScript XML extensions: Turn XML (as well as, in case of X#, SQL) data into first class citizens in the programming language, like this:

Table t =
  <table>
    <tr><th>Name</th><th>HP</th></tr>
    {pokemon}
  </table>;

In this case, the literal XML data is even strongly typed (it has type Table), which is an interesting notion.

Comments