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
the PHP ternary operator equivalent on Python
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="rurpy, post: 1850603"] Huh? How is this similar? Even a glance shows the indentation is different. It has the same results? Ok. But why would someone want to assign wrong values to some of the entries, then go back and fix them? I think either Fredrick's code or the code I posted is clearer than this. Yes, I see the error. OLDDCONTACT should be OLDCONTACT. Are you going to suggest Enum's? :-) Oh, that error too... But that error is a compile time syntax error. Your argument would be much stronger if it was not a syntax error, but resulted in erroneous program behavior. 1. Your definitions of hard to read are not the same as mine. 2. Good documentation can mitigate this somewhat. 3. The benefits of being able to write easier to read code by people with good judgement outweighs the downside. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
the PHP ternary operator equivalent on Python
Top