[Python-ideas] where statement in Pyret

Skip Montanaro skip at pobox.com
Sun Nov 10 16:21:38 CET 2013


> Sadly, I *really* dislike that. To me, "where" has absolutely nothing to
> do with testing. I see that Pyret also includes a "check" keyword which
> also does testing. That seems like a more sensible keyword.

"where" seems like it would implement argument constraints. I don't think
you want the (necessary) mess of comprehensive unit test code embedded in
the source, so nix on the "check" keyword too. It would just obscure the
structure of the code.

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131110/4d95b288/attachment.html>


More information about the Python-ideas mailing list