X

From Esolang
Jump to navigation Jump to search

X is a language invented by a fictional character appearing in strip #2309 in the XKCD web comic (published by Randall Munroe on 2020-05-20) . This comic could be considered the formal specification for the language but for the fact that it is rather incomplete. As such, what we have functions more as a definition for a class of languages that share the following properties:

  • All variables are named x.
  • It is possible to define at least two different variables but every different variable must differ in the font of the name x.

Trivia

  • The idea of representing different variables using the same letter written in different fonts dates back to 1776. Anton Felkel, in his book Tafel aller einfachen Factoren der durch 2, 3, 5 nicht theilbaren Zahlen von 1 bis 10 000 000, used the letter "m" in different fonts to represent different prime numbers consistently throughout the book.

Implementations