[Python-ideas] What about allowing '?' in method names?
solipsis at pitrou.net
Tue Aug 11 12:43:23 CEST 2009
Steven D'Aprano <steve at ...> writes:
> What makes you think that the question mark is a clue-in that a yes/no
> answer is expected?
AFAIK it is a widely-used convention in the Ruby world.
I'd even go as far as saying that it's quite pretty, as a typographical
convention (not that other Ruby conventions are :-)).
> In any case, I don't think that "returns a boolean flag" versus "returns
> a non-flag" is an important distinction.
I don't think this is a valid argument here. If '?' were to be allowed in
identifier names (or at least at their end), people would be free to choose
whatever convention they like.
More information about the Python-ideas