|Perl Monk, Perl Meditation|
Re^4: RFC: Concise OOP Syntaxby LanX (Cardinal)
|on Aug 05, 2019 at 12:12 UTC||Need Help??|
> You did, though.
OK I did, but I meant something different.
The full quote is
> Most of us are stuck with an older version of Perl before the team decides to upgrade, so it would be very important for acceptance if the "sexy" syntax could already be run there.
My job environment used to work with 5.16 until 1-2 years ago, we are now on 5.24 and may upgrade with the same cycle.
The "halfbacked" OO model² I'm showing is a demo for my macro system which should already work with 5.8 or at least 5.10.
I know of people who are stuck with 5.6 (AIX?) but "I never said" or meant to say that most of us are stuck with < 5.14 or something similar.
(UPDATE: What I meant is that if we add a new OO syntax into Perl5, it would be a huge advantage if older versions (last 10 years?) could easily emulate it right away! )
My approach of minimal dependencies is based on the assumption of
let me give you examples
my TYPE $instance_var :has
might look uglier in your eyes than
has TYPE $instance_var
But in the next step I could introduce a macro has which simply translates the later syntax into the former.
That's a very simply transform:
has TYPE $var REST -> my TYPE $var :has REST
I have big problems with all* these big projects which are "far ahead" by recombining many different technologies like Devel::XDeclare or was it Xdevel::Declare and meddle extremely with the parser.
These are predisposed to have conflicts with other extensions and create possible maintenance nightmares.
So these are my strategical thoughts.
Saying this I'm irritated by your approach of trying to tell me that I rather have to work on other projects which don't follow my philosophy.
To the degree that you participated at one of my talks about function signatures and criticized me for not knowing your favorite signature module. I did extensive research on 10+ other sig-modules on CPAN and nobody else in the audience seemed to have heard of your kafka-something.
In short: my approach is technological yours is political.
You want me to follow your agenda of reviving advanced but abandoned modules with huge dependencies chains.
Sorry, wont happen ;-P
°) If I remember correctly did Corion just write a source filter to support the experimental function signatures, just because he wanted his code to work with older versions.
*) how many are there already???
²) I'm very far from being a M[o[o[se]]] expert