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 8:38

>>29
I don't see why that's so bad
It is Worse is Better.

Name: Anonymous 2013-06-17 8:47

>>40
You can't implement pattern matching without an if.

Name: Anonymous 2013-06-17 8:58

>>42
You could use a computed jump table.

Name: Anonymous 2013-06-17 8:59

>>42
You could use a computed jump table.

Name: Anonymous 2013-06-17 9:00

>>43,44
You could double-post on history change, because shiichan a shit!

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.

Name: Anonymous 2013-06-17 19:14

>>47
The rule allows for a simple, consistent "interface" at the expense of complexity (not even that complex) in the implementation.
"simple, consistent" interface would be the dropping of one-armed IFs for good.

see >>9

Name: Anonymous 2013-06-17 19:15

dangling dick

Name: Anonymous 2013-06-17 19:16

>>47
Rich Hickey is a Jew, but he explains well why concept convolution is bad:
http://www.infoq.com/presentations/Simple-Made-Easy

Name: Anonymous 2013-06-17 19:55

DICK HICKEY

Name: Anonymous 2013-06-17 20:35

Name: Anonymous 2013-06-17 20:41


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