Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Proposal: runtime validation statement
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Dave Brueck, post: 1767987"] I disagree - there's a clear distinction between solving the problem and e.g. validating inputs to the problem solver, and having such checks as a statement is a good way to implement that distinction. That's why 'assert' as a statement makes sense to me too - it and validate are sort of "out of band" with getting the actual work done, but useful nonetheless. Whether or not a validate keyword is a good idea should be judged independently of your opinion of whether or not 'print' is a wart. It's definitely not "obvious library stuff" IMO - if nothing else, making you import a library just to validate parameters is goofy. It would be semi-tolerable (though less than ideal) as a builtin. -Dave [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Proposal: runtime validation statement
Top