2

I asked Why is `return a or b` a void value expression error in Ruby?, and it was marked as a duplicate of Difference between "or" and || in Ruby?. However, the duplicate does not answer my question. In fact, the question still stands if I remove all reference to the || operator (see here).

Why was it closed as a duplicate?

4
  • 2
    It was closed by a gold badge holder, so (IIRC) you should be able to '@' comment them on the question and try to get them to explain why they dupe closed it. It could be they misunderstood your question. Or it could be they saw something with your question and the dupe that you missed.
    – Kendra
    Jan 22, 2016 at 22:32
  • 1
    I think proper course of actions should have been to update linked duplicate to clarify that return a or b is common confusing case. Note that "duplicate" does not mean you asked bad question, just that answer is the same. Jan 23, 2016 at 4:39
  • @AlexeiLevenkov But the answer is not the same, compare the accepted answer from both questions.
    – Shelvacu
    Jan 23, 2016 at 6:01
  • 4
    The answer to your question makes me want to run screaming from anything Ruby.
    – user1228
    Jan 25, 2016 at 15:57

0

You must log in to answer this question.

Browse other questions tagged .