Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: perl module structure

by Anonymous Monk
on Mar 30, 2018 at 13:58 UTC ( #1212037=note: print w/replies, xml ) Need Help??


in reply to Re: perl module structure
in thread perl module structure

Always bear in mind that Java has a formally-defined compile time. Perl does not. Java therefore has things like pure-abstracts and other things, which a true compiler can support but an on-the-fly interpreter does not. While Perl can simulate such things to a very startling degree (e.g. "Moose"), the implementations are fundamentally different all the way down to their foundations. "When in Perl, do as the Perl do."

Replies are listed 'Best First'.
Re^3: perl module structure
by LanX (Archbishop) on Mar 30, 2018 at 14:12 UTC
    > Java has a formally-defined compile time. Perl does not.

    Sounds like the usual blah++ from sundial. And posting anonymously doesn't make it more useful.

    Perl has a compile time!

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Wikisyntax for the Monastery

      Java has a compile time which occurs independently of subsequent execution of the output of that compiler. Perl parses the source-code into a runtime tree which can be modified thereafter, to be discarded at run's end. In that respect both languages are typical examples of their respective archetypes.
        Partly true, but irrelevant.

        This doesn't answer in any way why the object systems are different.

        Perl has many means to make the compilation persistent (see eg PAR::Tutorial ), but this has no effect on typing whatsoever.

        Bla++ (as usual)

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Wikisyntax for the Monastery

        “ Perl parses the source-code into a runtime tree which can be modified thereafter“

        What?

        How? When? Where?

Re^3: perl module structure
by pwagyi (Scribe) on Mar 30, 2018 at 14:06 UTC

    Of course, I might be applying 'over abstraction'. But it' better to 'coding to interface' :P at least according to SOLID? I'm just using java as an example, since it's Object oriented and has packages just like Perl. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1212037]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2019-07-22 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (14 votes). Check out past polls.

    Notices?