News for hackers. Stuff that matters.
Re:The Modern Java Ecosystem (for the Sinatra or web.py lover) by mbell on Friday December 02, 2011 @01:18PM (#3305014)
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.

Re:The Modern Java Ecosystem (for the Sinatra or web.py lover) by waffle_ss on Friday December 02, 2011 @01:59PM (#3305187)
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)