Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Was anyone else thrown off by "else"

To my utter surprise, the if statement does not support an else clause.

An else clause exists, too. But it only applies to the for loop.

How very, very strange. (Personally, I view programming lanuages and an API as an interface. In this case, the interface is violating one of the fundamental tenets of a good interface: familiarity (defined as consistency with established standards).

Of course, sometimes familiarity has to take a back seat to other considerations, like orthogonality or ergonomics, but in this case there is no justification that I can see for the discrepancy.

Eruc Armstrong
Thursday, December 16, 2004

CityScript is not a complete language. It's just something that was cobbled together to let us automate a few fairly common tasks.

Darren Collins
Thursday, December 16, 2004

*  Recent Topics

*  Fog Creek Home