Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cbhl
on March 1, 2014
|
parent
|
context
|
favorite
| on:
A brief history of one line fixes
If the left is a function call, it will still error out because you can't assign to it.
If you're doing
if (var1 == var2)
then yoda expressions won't save you, however.
koenigdavidmj
on March 2, 2014
[–]
Also, in C++ you can assign to the return value of a function returning a reference.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
If you're doing
then yoda expressions won't save you, however.