
7 Jun
2007
7 Jun
'07
10:15 p.m.
Justin Bailey wrote:
On 6/7/07, Grzegorz
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).)