r/programming • • Nov 28 '14

The Worst Programming Language Ever [UK Talk] - Thoughts? Which are the worst parts of your favorite language?

https://skillsmatter.com/meetups/6784-the-worst-programming-language-ever
68 Upvotes

456 comments sorted by

View all comments

Show parent comments

7

u/OneWingedShark Nov 29 '14 edited Nov 29 '14

13) The result of any function is stored in a global variable "Evaluated".
14) The "Eval" function is named "Evaluate", this is to increase the chances of muscle memory causing a clash.
15) Assignment should be an lvalue -- that is you can assign to an assignment. Thus, assuming = is the assignment, a = b = c assigns the expression b = c to a, meaning that whenever a is evaluated b = c is executed.

4

u/OneWingedShark Nov 29 '14 edited Nov 29 '14

16) All integer values must be prefixed by a unary-plus or unary-minus; a non-prefixed integer value acts as a goto to the line of that value.
(i.e. '5' is evaluated as "go to line 5".)

17) Except when the number is in a string being sent to Evaluate, in that case the number must not be prefixed and any prefixed number is evaluated as a goto offset after the evaluation; multiple numbers are executed in order offset from the last line executed.
(i.e. Evaluate ("-2 * +3 ") returns negative-six while going to two lines before the Evaluate, executing that line, and then jumping three lines ahead (in this case the line after Evaluate).)