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: 1850604"] I know. But you compared the readability of code with one-liners and long variable names with the readability of code with no one-liners and short variable names. I thought that most of the readability improvement was due to the long-to-short name change. So I posted what I hoped was code equivalent to what you quoted, but using your short names and a one-liner "then-if-else" (on 3 lines :-) It satisfied me that the readability improvement was due to the short varible names. I was actually thinking of the effects of hardware memory cache... [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
the PHP ternary operator equivalent on Python
Top