Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slowpoke
on Feb 6, 2012
|
parent
|
context
|
favorite
| on:
Haskell's effect on my C++ : exploit the type syst...
I use Yoda Conditions[1] in C-oid languages, so the error would be visible even without warnings (because the program would refuse to compile).
[1]:
http://stackoverflow.com/questions/2349378/new-programming-j...
brendn
on Feb 6, 2012
[–]
That's fine when you make a comparison against a constant, but what if you're comparing two variables?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1]: http://stackoverflow.com/questions/2349378/new-programming-j...