Your opinion please!
Does a method that returns either true or raise an error violate the command/query separation principle?
e.g. this #Ruby code
```
def valid?
some_condition? ? true : raise NotValid
end
```
Replying to @joelquen
I don't think this has anything to do with command/query, but you shouldn't use exceptions for control flow
6:46 AM - 27 Aug 2018
from Denver, CO
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.