Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Why Perl in 2020

by eyepopslikeamosquito (Archbishop)
on Jan 06, 2021 at 07:18 UTC ( [id://11126413]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why Perl in 2020
in thread Why Perl in 2020

Python, in-and-of itself, inherently is OO, right to its core

Really? Care to elaborate? Note that Matz invented Ruby because he disapproved of Python's OO, as indicated here:

I was talking with my colleague about the possibility of an object-oriented scripting language. I knew Perl (Perl4, not Perl5), but I didn't like it really, because it had the smell of a toy language (it still has). The object-oriented language seemed very promising. I knew Python then. But I didn't like it, because I didn't think it was a true object-oriented language – OO features appeared to be add-on to the language. As a language maniac and OO fan for 15 years, I really wanted a genuine object-oriented, easy-to-use scripting language. I looked for but couldn't find one. So I decided to make it.

Matsumoto describes the design of Ruby as being like a simple Lisp language at its core, with an object system like that of Smalltalk, blocks inspired by higher-order functions, and practical utility like that of Perl.

See also: old stack overflow discussion of Python OO

Replies are listed 'Best First'.
Re^4: Why Perl in 2020
by Arunbear (Prior) on Jan 06, 2021 at 14:58 UTC
    His claim is correct in the sense that in Python, everything is an object (see an example).

    Ironically those objects are hidden behind a procedural skin, no doubt because Python was procedural before OOP was bolted on, and they couldn't have two ways to do the same thing :)

        I'm not convinced Python actually has primitives in that sense - at least I'm not aware of any way of distinguishing objects from non-objects (the type function always returns some class or other, unlike it's JS counterpart typeof).

      It would have been prudent of me to have worded it as you have, and that is exactly what I meant... in Python, everything is an object.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11126413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found