in reply to Re: What technical benfits perl offers over python + few more questions.
in thread What technical benfits perl offers over python + few more questions.
because that's FUD
"First class object" aka citizen basically means you can pass functions around as arguments to other functions. E.G. most BASIC dialects I've seen couldn't do that.
It's a necessity for functional programming...
Perl is actually better in functional programming, since Python is restricting lambdas to one expressions only, while anonymous subs are free.
And Python doesn't offer any block prototype to make it even easier like sub foo (&) { $code = shift; ... }
Superficial people will claim that the need to explicitly reference named subs in Perl with ...
\&foo
means they are not first class.
Superficially so because almost everything in Python is implicitly a reference.
Now, who said explicit is better than implicit again ...???
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: What technical benfits perl offers over python + few more questions.
by talexb (Chancellor) on Nov 13, 2021 at 15:56 UTC | |
by LanX (Saint) on Nov 13, 2021 at 17:59 UTC | |
by talexb (Chancellor) on Nov 13, 2021 at 20:09 UTC | |
by afoken (Chancellor) on Nov 14, 2021 at 16:53 UTC | |
by LanX (Saint) on Nov 13, 2021 at 20:20 UTC | |
by talexb (Chancellor) on Nov 13, 2021 at 21:55 UTC | |
by ikegami (Patriarch) on Nov 15, 2021 at 16:03 UTC |