dry-rb / dry-effects

Algebraic effects in Ruby
https://dry-rb.org/gems/dry-effects/
MIT License
112 stars 20 forks source link

Rename amb to cmp #62

Closed flash-gordon closed 5 years ago

flash-gordon commented 5 years ago

Traditional amb effect has different semantics, and we cannot achieve it using current Ruby means. It's possible with callcc but it was deprecated a long time ago. This commit renames the existing effect to cmp which is also 3-letters long but acts a bit differently. It's still beneficial for demonstration purposes