RE: [Haskell] Re: RFC: DData in hierarchical libraries

12 Mar
2004
12 Mar
'04
8:14 a.m.
Am Freitag, 12. März 2004 10:34 schrieb Simon Marlow:
[...]
Also, if the map argument comes first in 'insert map key x', then partial application is more likely to be useful (you're more likely to be inserting several things in the same map, rather than the same thing in several maps).
If you look at one concrete function, you probably use insert, lookup etc. several times with the same map argument and not with the same key argument. But IMO, this isn't a place where partial application is typically used.
Don't want to drag this point out too much, but I just looked through the GHC sources and there are a few places where we do something like: map (lookupFM fm) [ ... ] Cheers, Simon
7741
Age (days ago)
7741
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow