Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > OT(Slightly): Thanks to Python.

Reply
Thread Tools

OT(Slightly): Thanks to Python.

 
 
Christopher Koppler
Guest
Posts: n/a
 
      03-05-2004
[David M Cook]:
> I would call it *pragmatically* implemented OOP. It's not
> "proper" as some would see it.


[Ville Vainio]:
> Elaborate?


[John Roth]
> As I understand it, there are a number of issues.


> 1. Lack of method polymorphism


> 2. Use of built-in functions instead of "proper" methods.


> 3. ability to declare functions and variables at the
> module level.


Ad 2 and 3... well, practicality/pragmatism beats purity, once again.
Right now I'm struggling with the stupidity of Java (whether it's got
properly implemented OOP is another issue) in order to get certified
(since doing Python for a living is as yet a severely limited option
for me, despite evangelism). Guess I'm just spoiled.
Ad 1... I've yet to get involved in projects big/complicated enough
where I could conceivably benefit from that, so I don't miss it.

Christopher
 
Reply With Quote
 
 
 
 
Jacek Generowicz
Guest
Posts: n/a
 
      03-05-2004
"John Roth" <> writes:

> "Ville Vainio" <> wrote in message
> news:...
> > >>>>> "David" == David M Cook <> writes:

> >
> > David> I would call it *pragmatically* implemented OOP. It's not
> > David> "proper" as some would see it.
> >
> > Elaborate?

>
> As I understand it, there are a number of issues.
>
> 1. Lack of method polymorphism


[...]

> 1 would be nice at times, but there's no way it's
> going to happen in a language that doesn't have
> static typing.


Sigh ...

* (defmethod foo ((x integer))
(format t "~&~s is an integer" x))
#<Standard-Method FOO (INTEGER) {480054CD}>


* (defmethod foo ((x string))
(format t "~&~s is a string" x))
#<Standard-Method FOO (STRING) {4800ABED}>


* (foo 2)
2 is an integer


* (foo "hello")
"hello" is a string


The ANSI standard for the _dynamically typed_ language shown above,
which implements the behaviour you claim will "never happen in a
language that doesn't have static typing", is about a decade old. (The
capability itself is at least another decade older.)
 
Reply With Quote
 
 
 
 
JanC
Guest
Posts: n/a
 
      03-05-2004
Jacek Generowicz <> schreef:

> * (defmethod foo ((x integer))


> * (defmethod foo ((x string))


> The ANSI standard for the _dynamically typed_ language shown above,


Maybe someone can explain, but the above doesn't look like "dynamic typing"
to me...?

--
JanC

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cakewalk Pro Audio 9 (running problem) [THANKS] [ MORE THANKS] con't beenthere Computer Support 2 09-07-2006 08:58 AM
Thanks =?Utf-8?B?VG9ueSBT?= Wireless Networking 0 10-01-2005 12:29 PM
thanks Carl DaVault [MSFT] Wireless Networking 2 10-15-2004 06:10 PM
Thanks, thanks a lot Rick Computer Support 0 05-05-2004 04:04 AM
Firebird - html underline probs Thanks AC Firefox 0 06-25-2003 09:01 PM



Advertisments