Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: getting rid of special features

by tobyink (Abbot)
on Feb 19, 2013 at 09:52 UTC ( #1019500=note: print w/ replies, xml ) Need Help??


in reply to Re^4: getting rid of special features
in thread getting rid of costly special features

"Wouldn't you love to have a pragma telling the compiler: No Sir, I don't need that magic here! ?

... or just run perl2js --opt assume_increment_is_numeric=1

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name


Comment on Re^5: getting rid of special features
Download Code
Re^6: getting rid of special features
by LanX (Canon) on Feb 19, 2013 at 10:37 UTC
    For the records I didn't mean any specific "perl2js" or "python2js" implementation.

    > ... or just run perl2js --opt assume_increment_is_numeric=1

    ATM his is the only mode that perlito knows!

    But if you need to be sure that the Perl¹ side does the same thing, you will end up in overloading ++, hence considerably slowing down the Perl side.

    Cheers Rolf

    ¹) is there any name for the standard interpreter/compiler? "CPerl" maybe? ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-07-26 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (176 votes), past polls