You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An MKAY may be omitted if it coincides with the end of the line/statement, in which case the EOL stands in for as many MKAYs as there are open variadic functions.
The way I read this, the program above should be possible to rewrite into the following.
HAI 1.2
VISIBLE SUM OF 0 AN ANY OF FAIL AN WIN
KTHXBYE
But this quits with the error message test.lol:2: expected expression at: end of line.
Is this a bug in the specification, in the interpreter, or in my understanding of the specs?
EDIT: The description above concerns mathematical operations, but the same goes for SMOOSH, which is mentioned on its own in the specs.
The line ending may safely implicitly close the SMOOSH operator without needing an MKAY.
The following works for me.
HAI 1.2
SMOOSH "x" AN "y" MKAY
KTHXBYE
But this doesn't (expected expression at: end of line)
HAI 1.2
SMOOSH "x" AN "y"
KTHXBYE
The text was updated successfully, but these errors were encountered:
The following program prints
1
, as expected.However, according to the specs:
The way I read this, the program above should be possible to rewrite into the following.
But this quits with the error message
test.lol:2: expected expression at: end of line
.Is this a bug in the specification, in the interpreter, or in my understanding of the specs?
EDIT: The description above concerns mathematical operations, but the same goes for
SMOOSH
, which is mentioned on its own in the specs.The following works for me.
But this doesn't (
expected expression at: end of line
)The text was updated successfully, but these errors were encountered: