Hi,
I wonder, does Python support generic programming paradigm, and to what extent
(I guess, it doesn''t do it in full)? And (or) does it move in that direction?
Will we ever see
concept WellAlright:
...
constructs in Python?
Isn''t it right time to reserve "concept" as a keyword ;-)
Sincerely yours, Roman Suzi
--
rn*@onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
解决方案Roman Suzi wrote:
I wonder, does Python support generic programming paradigm, and to what extent
It appears to me to support generics at least as well as C++ does. I
just write normal code (no typechecks) and voila, the equivalent of C++
templates (at least). What do you think is missing?
Alex
On Fri, 22 Oct 2004 00:25:28 +0200, Alex Martelli wrote:
Roman Suzi wrote:
I wonder, does Python support generic programming paradigm, and to what extent
It appears to me to support generics at least as well as C++ does. I
just write normal code (no typechecks) and voila, the equivalent of C++
templates (at least). What do you think is missing?
The handcuffs.
Alex Martelli wrote:Roman Suzi wrote:
I wonder, does Python support generic programming paradigm, and to what extent
It appears to me to support generics at least as well as C++ does. I
just write normal code (no typechecks) and voila, the equivalent of C++
templates (at least). What do you think is missing?
Alex
How about specialization? I''m relatively new to Python. I ask for
information, not to be argumentative.
If you have, for example, several data-types for matrices, how do you
write code that will automatically find the right routine for quickly
multiplying a vector by a diagonal matrix represented as a vector, and
automatically call the right code for multiplying by a sparse matrix
represented by some sparse coding, etc?