From: Joel VanderWerf Date: 2013-03-22T01:55:39+09:00 Subject: Re: fixedpnt 0.0.1: Binary Fixed Point Calculations On 03/21/2013 03:51 AM, Axel Friedrich wrote: >> A random api suggestion... consider using #[]= as an alias for #assign, > > I see the advantages. Only thing is, I can't remember to have seen this > before, without any "argument" inside []. I mean, for example, > 'hello'[0] = 'H', has a 0 as "argument" inside []. Isn't this syntax > (without argument) very strange or would it be seen as "good ruby"/"the > ruby way"? A reasonable concern. I don't think I've seen this construct (#[]= and #[] with no args) used before either. Every other operator forces a particular arity. I see no reason not to take advantage of this special case. The ruby way is in the eye of the beholder...