Re:Tour De Babel -- Rant about programming languages
by jrockway on Sunday August 31, 2008 @01:28PM
(#291433)
> Perl OO never really caught on because it isn't part of the core language.
What?
Perl OO did catch on, and it is part of the core language.
Re:Tour De Babel -- Rant about programming languages
by omouse on Sunday August 31, 2008 @03:02PM
(#291479)
Perl OO = library. Scheme OO = library. Library != language. The last time I tried to use Perl OO, CPAN had to download a bunch of stuff for Moose. That doesn't sound like it's part of the core language to me.
Has the situation changed? Are there OO things included with the default dist of Perl?
Re:Tour De Babel -- Rant about programming languages
by jrockway on Tuesday September 02, 2008 @02:14AM
(#292455)
Perl 5 has had OO forever. Here's how it works:
package Class;
sub new { my $class = shift; bless {} => $class }
sub method { my $self = shift; $self->{attribute} = 'value' };
package Subclass;
our @ISA = qw(Class);
sub method { my $self = shift; $self->SUPER::method(...); ... }
package main;
my $class = Subclass->new;
$class->method;
This is built into the core.
Also, what pray tell is a "real" lisp? Last I checked, Emacs-Lisp has macros and much of what makes any lisp a "real" lisp.