
3 Apr
2013
3 Apr
'13
6:38 a.m.
* Herbert Valerio Riedel
Roman Cheplyaka
writes: [...]
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 )
?
Did you just fall victim of forcePair's name? :) It's about a different issue. Or is this meant as an unrelated proposal? Roman