Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: getting rid of special features

by ww (Archbishop)
on Feb 17, 2013 at 16:33 UTC ( #1019161=note: print w/replies, xml ) Need Help??

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

"...something like strinc"
C:\>perl -E "sub strinc { $strToBeInc = shift; $strToBeInc++; return $strToBeInc; } my $str='a'; my $foo = strinc($str); say $foo;" b

While I agree with what I think is one of moritz' points -- namely, that P5 is going to have to break backward-compat at some point... or stop improving and die -- I don't think we're there, yet, nor do I see how replicating the code behind ++ to provide a (duplicative) strinc is a plus, unless it allows removing a lot of cruft from ++.

If you didn't program your executable by toggling in binary, it wasn't really programming!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019161]
[Discipulus]: Ah! if so you must play with him not with us ;=)
[vrk]: Hope he gets better soon.
[Discipulus]: hdb sorry i profit; is known that a prime number is never a figurate one nor the sumattion of two adjacent figurates of the same order? like 3th triangular+3th tetrahedric

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-04-27 07:53 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (501 votes). Check out past polls.