You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dry-monads's then takes precedence, but conflicting with Kernel methods is something we generally avoid.
Since it's just a helpful alias, and bind is already used a lot in dry-monads, I think it could be OK to just remove this alias, though that's technically a breaking change (or could wait for a 2.0 release, since this is pretty low stakes.)
The text was updated successfully, but these errors were encountered:
I think we can add a deprecation warning and cut a release. I would like to push 2.0 sometime soon anyway. .then is a common name for chaning promises/futures/etc but I agree we shouldn't shadow Kernel here.
Dry::Monads::Task
has an alias for itsbind
method asthen
.Ruby 2.6 itself added
Kernel#then
as an alias toKernel#yield_self
(first note) ~11 months afterdry-monads
added its alias.dry-monads
'sthen
takes precedence, but conflicting withKernel
methods is something we generally avoid.Since it's just a helpful alias, and
bind
is already used a lot indry-monads
, I think it could be OK to just remove this alias, though that's technically a breaking change (or could wait for a 2.0 release, since this is pretty low stakes.)The text was updated successfully, but these errors were encountered: