On Wed, Jun 08, 2011 at 09:24:50AM +0100, Dirk Koopman wrote: > On 08/06/11 08:31, Abigail wrote: >> >> >> unless (!something) { >> ... >> } >> else { >> ... # Unless not something isn't true. >> } >> > > An earnest question in the interview test along the lines of "what does > this mean and when would you use it" should weed several people out. > > Instant sacking (or promotion if in Britain) on sight would seem to be > an answer. >
I'd rather go for sacking people that don't know the difference between if (something) { ... } and unless (!something) { ... } Or does everyone think they are always equivalent? Abigail