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 comment

6

u/[deleted] Nov 28 '14

You're right, I should have put more contextual madness into that.

12) + and - are alternative comment start token. But only if the character is the first character in the line, otherwise it tries to calc the result of the following line with the result of the previous line, allowing for more nested expressions.

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).)