[nem-en] [RFC] type parens

Ricardo Fernández Pascual r.fernandez at ditec.um.es
Fri Sep 24 11:15:51 CEST 2004


El vie, 24-09-2004 a las 11:06, Michal Moskal escribió:

> So, there is proposition to change <> to []. So it would be now
> Hashtable[int,string], list[foo] and so on.

Why not parentheses: Hashtable (int, string) and list (foo)? 
Just curious.

> We don't feel very good about it -- it will break backward as well as
> C# compatibility, but this seems the only right thing to do. 

Personally, I never liked C++/C# use of "<" and ">" for this. But I see
that following C# would be (sightly) beneficial here.

> We already
> changed this once from the () parens, and converting the sources
> required lots of perl magic. We are going to provide similar perl magic
> with the 0.3 target release for this feature. It would work in most
> cases probably.
> 
> There are also some other ideas -- 

> write Hashtable<int string> or
> Hashtable<int><string>, Hashtable<<int,string>> but they are not as
> consistent, at least for me.

And they look uglier ;)

-- 
Ricardo Fernández Pascual
r.fernandez at ditec.um.es
Murcia. España.






More information about the devel-en mailing list