Should every ruby method returning a bool have a question mark?
I have a method:
def addNewShow(name)
end
I want it to return a bool which states whether or not this was
successful. Should my method have a question mark on the end of its name
to let the user know that that's what it returns, despite it not being a
question, and only returning the answer to the question "Was this
successful?"
No comments:
Post a Comment