Re: comments on Matrix

On Mar 22, 2013, at 9:18 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Fri, Mar 22, 2013 at 4:48 AM, Benoit Jacob <jacob.benoit.1@gmail.com> wrote:
>> The following points don't seem to have been discussed yet:
>> 
>> 2013/3/19 Benoit Jacob <jacob.benoit.1@gmail.com>
>>> 4. Some method names are verbs, yet they do not perform an action on their
>>> object. Example: translate(). I would call that translated(), I suppose.
> 
> I'd like more input from JS design people on this point.  I like
> having a convention for knowing when an operation is pure or mutating,
> and I know that Python used the "past tense verb" convention for that
> in some places, but I don't think JS has such a convention so far.
> However, if we plan to add mutating methods in the future, it's very
> reasonable to think about this now.

We could choose the past tense for the method names. For SVG we still need to reserve the present tenses for immutable operations.

Greetings,
Dirk

> 
> ~TJ
> 

Received on Friday, 22 March 2013 16:55:04 UTC