in reply to Re^5: RFC: OO Perl using Moo/Moose book
in thread RFC: OO Perl using Moo/Moose book
"Classes are just packages" pre-supposes a class-based paradigm. I want to put less emphasis on classes and more on objects. It's possible to create objects by composing roles on-the-fly, for example. And even though these objects are still backed by packages and stashes and stuff, you don't have to think of each class being a package and being defined in a module.
This is stuff which is hard to do properly in languages like Java, but you can still use it to conceive how you design your program, and then "down translate" that into whatever programming language you're using. For example, something like roles/traits/mixins can be emulated in Java using a combination of interfaces and delegation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: RFC: OO Perl using Moo/Moose book
by LanX (Saint) on Apr 30, 2019 at 14:27 UTC | |
by tobyink (Canon) on Apr 30, 2019 at 17:48 UTC | |
by LanX (Saint) on May 01, 2019 at 01:47 UTC | |
by tobyink (Canon) on May 01, 2019 at 10:40 UTC | |
by LanX (Saint) on May 01, 2019 at 11:14 UTC | |
|