Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I seem to remember this same feature causing lots of headache in C in the form of subtle bugs mostly the result of this being used in awkward ways.

Personally I'd rather have a distinct boolean value to test for, the java version is much more explicit as to exactly what its doing.



Hmm can't say I've ever encountered something like that in Ruby so far. However, if you want a strict boolean it's pretty easy to get:

  !!STUDENTS.remove(uid)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: