librelist archives

« back to archive

Will changing associativity of enumerator's ($=) affect anyone?

Will changing associativity of enumerator's ($=) affect anyone?

From:
John Millikin
Date:
2011-10-15 @ 05:52
A user recently suggested changing the associativity of ($=) from [[
infixr 0 ]] to [[ infixl 1 ]]. This allows the following expressions
to be equivalent:

   run $ enumerator $$ enumeratee =$ enumeratee =$ iteratee
   run $ enumerator $= enumeratee $$ enumeratee =$ iteratee
   run $ enumerator $= enumeratee $= enumeratee $$ iteratee

Although this is technically a backward-incompatible change, I feel
it's small enough that it could go in a minor release *if nobody
depends on the current behavior*.

So, if anybody using 'enumerator' will have code broken by this
change, please speak up. If I don't hear anything in a week or so,
I'll assume it's all clear and will cut the new release.