Loss

From Esolang
Jump to navigation Jump to search
Not to be confused with Loss, v. 1.11.11.1_.

Syntax & structure

Loss has 4 commands:

l Print selected data as unicode character
l ‎ l Half selected data, rounding down
l l Incrimemt selected data by 3
l _ Selects slot with an ID of currently selected data

"l", "I", "|", and "ı" can be used as the tall keys for the program (capitalisation matters). Anything after the command acts like a comment.

Loss takes place on an infinitely long line of slots, which store nonnegative integers. Every slot starts at 0, and the program starts on slot 2. Slots 0 and 1 have special functions:

  • Slot 0 stores where in the code you are, and thus can be used to recreate jump commands.
  • Slot 1 can be edited by the user.

The first command in a program is treated as command 0. Newlines seperate commands.

Something important to note is that inputting a digit such as "1" will result in the Unicode value for the digit, and not the digit's actual value. In the "1" example, you'd actually be inputting the number 49.

In adition to having an easy to learn command list, Loss has numerous other advantages,

Advantages

Zero is a number and thus is "numerous".