
3 Apr
2013
3 Apr
'13
6:31 a.m.
Roman Cheplyaka
I'd +1 for Henning's forcePair if a better name is found (the word force is normally associated with being strict, although I can see why he used it here).
btw, just thinking out loud, what about an infix operator such as (just as an example): (!.!) :: a -> b -> (a,b) a !.! b = a `seq` b `seq` (a,b) which let's you write a pair as ( exp1 !.! exp2 ) which has a bit of a resemblance to the standard tuple-construction syntax: ( exp1 , exp2 ) ? cheers, hvr