[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>

Hi --

39 messages 2004/03/01
[#2531] Re: concerns about Proc,lambda,block — ts <decoux@...> 2004/03/01

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#2533] Re: concerns about Proc,lambda,block — "David A. Black" <dblack@...> 2004/03/01

Hi --

[#2537] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/01

Hi,

[#2542] Re: concerns about Proc,lambda,block — Mathieu Bouchard <matju@...> 2004/03/02

[#2545] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/02

Hi,

[#2550] Re: concerns about Proc,lambda,block — Mauricio Fern疣dez <batsman.geo@...> 2004/03/03

On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:

[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>

This patch adds support to Net::POP for doing POP over SSL. Modeled on how

19 messages 2004/03/27
[#2704] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/27

This is v2 of the patch. Cleaned up a bit and added some more docs.

[#2707] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/28

v3 of the patch:

[#2721] Re: Proposed patch to add SSL support to net/pop.rb — Minero Aoki <aamine@...> 2004/03/30

Hi,

Re: concerns about Proc,lambda,block

From: "David A. Black" <dblack@...>
Date: 2004-03-03 12:04:34 UTC
List: ruby-core #2551
Hi --

On Wed, 3 Mar 2004, Mauricio Fern疣dez wrote:

> On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:
> > Hi,
> > 
> > In message "Re: concerns about Proc,lambda,block"
> >     on 04/03/03, Mathieu Bouchard <matju@sympatico.ca> writes:
> > 
> > |Hi Matz, may I remind you that I wish proc/block/method were closer, with
> > |as few differences as it makes sense, because it's a mess explaining it to
> > |someone else, and it's a mess remembering how it works, and the
> > |differences between versions of Ruby. So I hope Ruby 2.0 will make it
> > |_simpler_ and _final_. I don't want them to change again in 2.2 and 2.4. I
> > |think making them simpler will reduce the temptation to change them again.
> > 
> > I hope so too.  The point is no one behavior can satisfy all.
> 
> To put it bluntly, we'll save some time if you answer to the following
> question:
> 
> do you want to keep Proc and lambda as separate things (like Class &
> Module) or would you consider merging them and reaching a compromise on
> their semantics?

A third possibility: keep them separate, but make them *more* like
Class and Module -- meaning, make it possible to determine, from the
object itself, which semantics are required.  

The way Proc is right now is sort of like having only "Class", but
having some Class objects invisibly behave like modules:

  class A ... end
  class B ... end    # "module context" (whatever that would mean :-)

  # later ...

  A.new
  B.new   # whoops, Class-created-in-module-context (but B contains
          # no information or knowledge of this)


David

-- 
David A. Black
dblack@wobblini.net


In This Thread