21 Nov
2012
21 Nov
'12
2:46 a.m.
Edward Kmett <ekmett@gmail.com> writes:
We had switched to % from (|>) to be consistent with the other (+=) (*=) operators where (%=) was being read as 'mod-equals' as a bit of a pun, and could be seen as the application of the % operator to the target.
Yes, a strong positive in favor of & of |> is that it allows the lens library to offer the highly useful variants &= and &~, which have obvious (and related) meanings to someone using lens. |>= and |>~ would get a bit awkward in comparison. -- John Wiegley FP Complete Haskell tools, training and consulting http://fpcomplete.com johnw on #haskell/irc.freenode.net