Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Dangling Else

Name: Anonymous 2013-06-16 13:34

Why allowing IFs missing ELSE at all? Even Scheme forbids IFs without ELSE clause. Although retarded Common Lisp allows them, despite having WHEN and UNLESS.

Name: Anonymous 2013-06-16 21:48

>>23
 It works by keeping track of any lexically enclosing statement that is looking for an else clause, so if an else clause is found for the current statement without a following { }, then it is marked as illegal.

As far as I know, no other language has implemented this solution, though GCC does check for a subset. I think it's great that there is still room for better solutions to ancient programming problems.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List