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-17 18:04

>>41
I wasn't familiar with what that meant so I skimmed this http://www.jwz.org/doc/worse-is-better.html, and I disagree. The rule allows for a simple, consistent "interface" at the expense of complexity (not even that complex) in the implementation.

I say it's simple and consistent because "ambiguity is illegal" should be a universal rule of a language where there might be ambiguity (whether a language should allow this in the first place is a different question), which means there is no need to add a specific, arbitrary rule for the dangling else problem.

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