dry-rb / dry-effects

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

Rename default handler method #42

Closed flash-gordon closed 5 years ago

flash-gordon commented 5 years ago

Generic: "handle_#{effect}" -> "with_#{effect}"

State/reader: "handle_state" -> "with_#{scope}" (like "with_counter", "with_user") I figured these are the most sensible defaults