[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02948] Things I am wondering...

From: h.fulton@...
Date: 2000-05-23 15:14:25 UTC
List: ruby-talk #2948
Just some more random questions. These are some
things I have been wondering about, and I thought
I might ask them all at once.  :)

1. Why is Dir::foreach not named Dir::each? 

2. Why are these control structures and not methods?
&& || ! and or not

3. Why are TrueClass and FalseClass separate classes?
In a way, I see the logic of it. But my instinct would
have been a single class called Boolean.

4. Why was the keyword "yield" chosen? Is this a legacy
from another language? It is not intuitive to me.

5. Like many other languages, Ruby does short-circuiting
of Boolean expressions. Other than efficiency, what is
the rationale for this? Was the other way (full 
evaluation) ever considered?


Thanks for enlightening me...

Hal

In This Thread

Prev Next