Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[OPINION] Perl 6 object system

Name: Anonymous 2011-05-23 15:16

Hi, /prog/. What are your thoughts on Perl 6's object system?

Name: Anonymous 2011-05-23 18:25

>>13
Only a subset of object-orientated programming.

Classes with instance methods? Yes.
Encapsulation? Sure.
Inheritance? Not so much.
Composition? Yes.
Class-invariance rules and RAII? Yes.
Runtime polymorphism? Hell no.
Runtime reflection? Hell no.
Rich object graphs, trees and collections representing complex relationships between objects? Hell no.

What about functional concepts?

Templates/strongly-typed macros? Yes.
Functors/closures and lambda functions? Yes.
Actors? Yes.
Generators? Yes.
Continuations? Yes.
Parallel patterns like map, reduce, filter, fold, etc.? Yes.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List