[nem-en] [RFC] type parens
Michal Moskal
malekith at pld-linux.org
Fri Sep 24 11:21:37 CEST 2004
On Fri, Sep 24, 2004 at 11:15:51AM +0200, Ricardo Fernández Pascual wrote:
> 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.
foo['a] (x : 'a) : 'a { x }
vs:
foo('a) (x : 'a) : 'a { x }
Of course the dual situation would occur for indexers, but they are far
more rare.
> > 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.
Yes. The counterargument would be, that getting the idea of changing <>
into [] in types takes a few seconds to most of us.
--
: Michal Moskal :: http://www.kernel.pl/~malekith :: GCS !tv h e>+++ b++
: When in doubt, use brute force. -- Ken Thompson :: UL++++$ C++ E--- a?
More information about the devel-en
mailing list