6

I would like to ask whether the following question is really an off-topic:

How to condense my 9 if statements into one


I'm confused, because there is a plenty amount of similar questions, which are valid:

Refactoring if/else logic

How to use Java 8 Optionals, performing an action if all three are present?

Replacing if else statement with pattern

Replacing If Statements?

Personally, I'm a little bit disappointed that this question was put on a hold... After 22 hours of been alive...

7
  • 4
    I've reopened it, just to indicate that it really is on-topic. However, note that you did already receive several very good answers to your question, so there really wasn't any compelling reason to reopen it. Also, note that Stack Overflow isn't a discussion forum. May 1, 2018 at 18:48
  • 1
    So that question blew up more than I had thought it ever could...
    – Makoto
    May 1, 2018 at 18:49
  • 2
    @RobertHarvey: Yeah, I was there kinda early looking at it. Definitely didn't seem like it was a bad question, but now I understand that the bike shed is going to have a vending machine with sparkling water...
    – Makoto
    May 1, 2018 at 18:51
  • @Robert Thanks! Certainly, I agree with you, and would like to add that I also don't see any compelling reason in putting this question on-hold... May 1, 2018 at 18:58
  • Just make sure you're clear about your own motivations. If your goal was to get an answer to your question, that goal was satisfied admirably, even though the question got closed. if your goal was to solicit an ongoing discussion, well, we don't do that here. May 1, 2018 at 19:01
  • @Robert I just wanted to understand the line between off-topic and on-topic for myself. Also, in such a case, we can close any well-answered question, but we don't do that, right? We strive to be welcoming and that was my motivation... P.S. Original question isn't mine. May 1, 2018 at 19:10
  • 5
    Also, in such a case, we can close any well-answered question, but we don't do that, right? -- We do, if the question is clearly off-topic. May 1, 2018 at 19:17

0

You must log in to answer this question.

Browse other questions tagged .