scalar vs array and program control
Laura Creighton
lac at openend.se
Sat Jul 25 09:43:59 EDT 2015
In a message of Sat, 25 Jul 2015 14:57:14 +0200, "Thomas 'PointedEars' Lahn" wr
ites:
>Laura Creighton wrote:
>
>> […] You really cannot make your code 'more functional' and 'more object-
>> oriented' at the same time -- more in one style implies less in the other.
>
>How did you get that idea?
Because pure object oriented techniques are best when you have
a fixed set of operations on things, and as your code evolves
you primarily add new things. Things written in a functional style
work best when you have a fixed set of things, and your code evolves
you add new operations for the existing things.
Laura
More information about the Python-list
mailing list