[#1263] Draft of the updated Ruby FAQ — Dave Thomas <Dave@...>

33 messages 2000/02/08

[#1376] Re: Scripting versus programming — Andrew Hunt <andy@...>

Conrad writes:

13 messages 2000/02/15

[#1508] Ruby/GTK and the mainloop — Ian Main <imain@...>

17 messages 2000/02/19
[#1544] Re: Ruby/GTK and the mainloop — Yasushi Shoji <yashi@...> 2000/02/23

Hello Ian,

[#1550] Re: Ruby/GTK and the mainloop — Ian Main <imain@...> 2000/02/23

On Wed, Feb 23, 2000 at 02:56:10AM -0500, Yasushi Shoji wrote:

[#1516] Ruby: PLEASE use comp.lang.misc for all Ruby programming/technical questions/discussions!!!! — "Conrad Schneiker" <schneiker@...>

((FYI: This was sent to the Ruby mail list.))

10 messages 2000/02/19

[#1569] Re: Ruby: constructors, new and initialise — Yukihiro Matsumoto <matz@...>

The following message is a courtesy copy of an article

12 messages 2000/02/25

[ruby-talk:01243] Re: Singleton classes

From: "Conrad Schneiker" <schneiker@...>
Date: 2000-02-06 00:12:03 UTC
List: ruby-talk #1243
From: Dave Thomas <Dave@thomases.com>
Sent: Saturday, February 05, 2000 5:11 PM

> Clemens Hintze <c.hintze@gmx.net> writes:
<<snip>>
> > Yes. Every closure is an instance of class Proc. A block, however, is
> > only code surrounded by '{' and '}' or 'do' and 'end'. We can use
> > 'lambda' or 'proc' or 'Proc.new' to convert a block to a closure
> > (means Proc instance). Or we could use 'yield' to execute a block.
>
> I think we're agreeing! I think your original note mentioned a
> "closure object", and I was simply suggesting for consistency we
> should call objects by their class's name were possible a String
> object, a File object, and a Proc object. I agree absolutely we need
> to distinguish between unbound blocks and closures.

I'm all for consistency attained by "calling by (user view of) function"
rather than "calling by implementation". (English pun; sometimes "calling"
means "naming". :-) I think this would help beginners learn Ruby, while
complying with the principle of least surprise for more advanced users.

But out of curiosity, what terms (if any) are used for these sorts of things
(and the other things mentioned earlier in this thread) by other OO
languages (for example, CLOS/Lisp, Eiffel, Smalltalk, Python, and (proposed
extensions to) Java) in particular, and by the computer science community in
general? Do they have any terms worth copying?

It might be useful to have a FAQ entry for a comparison of Ruby OO
things/terms and those of other OO languages. (Cases were the same terms are
used should probably also be included, if there are subtle or significant
differences in behavior/implementation.) This might be a useful addition to
the www.ruby-lang.org language comparison page.



In This Thread