From: "Peña, Botp" Date: 2007-09-04T10:13:03+09:00 Subject: Re: assigning to hash keys when there is a default value? From: sconds@gmail.com [mailto:sconds@gmail.com] On Behalf Of Russell Norris: # I learned that x ||= y means set x to y unless x, so I don't see the there's the bug: you've changed the meaning of x ||= y, or of foo=bar for that matter. # bug. and i don't see this as being at all unpredictable. you just said you've _learned that x||=y means set x to y unless x. Surely it was _unpredictable at some point. Surely x=y is a no-brainer for a many of us :) and now we all have to update our test cases, cause maybe x += 1 may not always be x = x + 1 speaking of least surprise :( kind regards -botp