Justin Bailey wrote:
On 6/7/07, Grzegorz <[EMAIL PROTECTED]> wrote:

All this hard work for something that in a lesser language would be the
unimpressive:  universe["Milky Way"]["Sun"] ;-P

Well, if you want to get picky there is the '!' operator defined in Data.Map:
universe ! "Milky Way" ! "Sun"

I second that. I particularly like the elimination of ]'s. We certainly need some symbol to separate the map and the key; but we do really need to also mark "here be the end of the key"?

(Evidently, this carries over to array indexing and function application too, i.e., a!!i vs a[i], f$x or f x vs f(x).)

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to