Re: [geometry] Replace 'By' with 'This'

On Tue, Jun 10, 2014 at 4:03 AM, Dirk Schulze <dschulze@adobe.com> wrote:
> On Jun 10, 2014, at 12:51 AM, Rik Cabanier <cabanier@gmail.com> wrote:
>> during the discussion with mozilla, people also thought that the 'by' methods are very confusing (ie translateBy, scaleBy, rotateFromVectorBy)
>> Roc suggested that we should replace it with 'This' so it's more clear that the matrix operation is done in place.
>
> *This sounds a bit strange but is indeed more expressive. I am fine with the name change. An alternative could be *Self.

"self" sounds a bit better to me.  Better not to invoke "this" in a JS
context, as that name is already used (and in a way that often
confuses people!).

~TJ

Received on Tuesday, 10 June 2014 17:52:32 UTC