On 2013-06-22, Volker Braun <vbraun.n...@gmail.com> wrote:
> ------=_Part_5_26369588.1371859450149
> Content-Type: text/plain; charset=ISO-8859-1
>
> http://www.python.org/dev/peps/pep-0318/
>
> On Friday, June 21, 2013 1:43:13 PM UTC-7, Dima Pasechnik wrote:
>>
>> Why does one even need a decorator in Simon's proposal? 
>>
>
> http://www.python.org/dev/peps/pep-0318/
Thanks Volker, I started writing code generating code 30+ years ago...
>
> I think a decorator like this makes the code unreadable, and if it can 
>> be avoided then it should be avoided. 
>>
>
> That is not the general consensus

I don't think it's general consensus that if project B needs something
from classes A0, A1, ... it must directly modify classes A0, A1,...
(already full of methods), just because it's the 1st thought the crossed
the designer's minds, and because they have the numbers to muscle this
design in.  IMHO B could very well derive from classes A0, A1,... and
place its extra methods in these derivations. Using decorators or
schmuckerators or whatever it sees fit.

One advantage of such design is that the code of B is located in one
place, instead of being all over the A0, A1,...

 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to