exercism / ruby

Exercism exercises in Ruby.
https://exercism.org/tracks/ruby
MIT License
556 stars 518 forks source link

Include example for unless statement #1688

Closed wascoding closed 5 months ago

wascoding commented 5 months ago

Includes an else example in the code making it more clear.

iHiD commented 5 months ago

Hello. I think generally unless/else is considered an antipattern. Generally speaking if/else is a better choice in my experience, so I'm not sure we want to teach that here. I'd suggest opening a post on the forum (forum.exercism.org) if you'd like to discuss further. Thanks! :)

kotp commented 5 months ago

Discussion happening here.