Mike Hansen wrote:
>> * introduction of eigen* functions
> 
> +1 definitely.
> 
>> * changing left/right_* functions to *_left/right to make tab completion
>> and finding the functions much easier.
> 
> The *_left and *_right are easier to find under tab completion, but
> they are much uglier when reading code.  I don't understand why not
> just have both.  In any case, this is mostly bikeshedding when
> compared to the other changes.


I think you're right about the advantages and disadvantages.  The reason 
to have only one set is:

1. The python "way" of having only one way to do things, instead of 
multiple equivalent ways. [1]

2. prevent the littering of the namespace with identical functions that 
are just named differently.

3. When this was brought up on sage-devel before, people were even 
against the *_left/right names since there were then two functions for 
computing kernel, for example.  Having 4 functions to compute the kernel 
seems a bit much.



Personally, I think the ease of tab completion and finding the functions 
is more important than the adjective_noun form of function names.  But 
in absence of other opinions, I'll make the patch just have left/right_* 
synonyms to the *_left/right functions, with no deprecation notice for 
the left/right_* functions.  William also weighed in on IRC against the 
*_left/right naming convention.


Thanks,

Jason


[1] "There should be one-- and preferably only one --obvious way to do 
it.", see http://www.python.org/dev/peps/pep-0020/


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to