[#4595] New block syntax — Daniel Amelang <daniel.amelang@...>

I'm really sorry if this isn't the place to talk about this. I've

25 messages 2005/03/21
[#4606] Re: New block syntax — "David A. Black" <dblack@...> 2005/03/21

Hi --

[#4629] Re: New block syntax — "Sean E. Russell" <ser@...> 2005/03/30

On Monday 21 March 2005 16:17, David A. Black wrote:

[#4648] about REXML::Encoding — speakillof <speakillof@...>

Hi.

15 messages 2005/03/31
[#4659] Re: about REXML::Encoding — "Sean E. Russell" <ser@...> 2005/04/04

On Thursday 31 March 2005 09:44, speakillof wrote:

Re: New block syntax

From: "Sean E. Russell" <ser@...>
Date: 2005-03-30 12:38:26 UTC
List: ruby-core #4628
On Sunday 20 March 2005 21:31, Daniel Amelang wrote:
> I really like the new proposed syntax for proc/blocks:

Ditto.

> Consider the following alternative hash constructs:
>
> # The key value pairs completely differentiate the hash from an array,
> # allowing us to borrow the [] from array's constructor
> hash = [name:'bill', age:25]

This reduces the number of keystrokes for creating hashes and is no less clear 
or parseable, so is fine by me.  If you extend it to method calls, it also 
makes them more pretty:

	foo( name: 'bill', age: 25 )

Good luck getting Matz to accept a major syntax change :-)

-- 
--- SER

"As democracy is perfected, the office of president represents, 
more and more closely, the inner soul of the people.  On some 
great and glorious day the plain folks of the land will reach 
their heart's desire at last and the White House will be adorned 
by a downright moron."        -  H.L. Mencken (1880 - 1956)

In This Thread