| Store | Cart

OT(Slightly): Thanks to Python.

From: JanC <usen...@janc.invalid>
Sat, 13 Mar 2004 05:24:19 GMT
Jacek Generowicz <jacek.generowicz at cern.ch> schreef:

> What gives you that idea? There are no statically typed parameters in> anything I have shown you (except the C++).
[...]
> I think you really should tell me what _your_ definition of static> typing is, otherwise we're going to go around in circles for a very> long time.

I think I didn't understand what exactly the "(x integer)" in that code 
was.  Now I think it's like a tuple (or something similar) that's passed 
to the code in the background that has to select the "wanted version" of 
a function or method at runtime.   :-)


So, what some people want is defining functions in a way similar to this:

def foo(a, b) for (type1, type2):
    print "type 1 & 2"

def foo(a, b) for (type3, type4):
    print "type 3 & 4"


-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9

Recent Messages in this Thread
Aahz Mar 10, 2004 10:48 pm
David M. Wilson Mar 10, 2004 08:34 pm
Jacek Generowicz Mar 08, 2004 09:24 am
JanC Mar 09, 2004 09:25 pm
Michael Hudson Mar 10, 2004 11:47 am
Jacek Generowicz Mar 10, 2004 03:03 pm
JanC Mar 13, 2004 05:24 am
Josiah Carlson Mar 13, 2004 07:17 am
Ville Vainio Mar 13, 2004 09:08 am
Ville Vainio Mar 13, 2004 09:17 am
Messages in this thread

Next post: drowning newbie