Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Is a good or bad idead to "use feature 'switch'"?

by sundialsvc4 (Abbot)
on Sep 03, 2013 at 20:07 UTC ( #1052169=note: print w/replies, xml ) Need Help??

in reply to Is a good or bad idead to "use feature 'switch'"?

It would be very helpful to all of us, I think, if you would tell us a bit more about “your code.”   You say that you “use labeled blocks ot simulate ...” but can you please show us a brief example of what you are doing?   When you “had issues with smart matching,” can you please elaborate?

FYI, I personally avoid “experimental” features like the plague, especially when, as in this case, “There’s (Already) More Than One Way To Do It,™” namely, “the way that this sort of thing has been done for years.”   If The Implementors (Ommmmm....) have not decided yet what The Future Course Of The Entire Perl World™ will Be,™ then I personally am not keen on guessing wrong.   Frankly, I’d rather not guess.   I can wait, and/or do without the Goodness, because I already know how (else...) to do switch, in code that won’t come back to bite my warranty.   But, Your Mileage May Vary.™

  • Comment on Re: Is a good or bad idead to "use feature 'switch'"?

Replies are listed 'Best First'.
Re^2: Is a good or bad idead to "use feature 'switch'"?
by Anonymous Monk on Sep 03, 2013 at 22:06 UTC
    Now you're throwing trademark symbols randomly into your posts? What's next, are you going to vomit a whole box of Lucky Charms out of your keyboard?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052169]
[oiskuu]: You want to draw the path? $iter = combinations( $TOP_HEIGHT .. $NODE_HEIGHT, $pos); then get the path from the iter, level change at depth x, for(..) $pos += $level_change; something like that
[oiskuu]: yergh, <code> tags... [$top_height .. $node_height]
[Eily]: Discipulus by demonstrate I suppose you mean simulate with perl?
[Eily]: the demonstration itself is fairly easy. The number of paths on a node is the sum of the numbers of paths to the two nodes above (or one node above on the edges of the triangle)
[Eily]: since the value of a node is also the sum from the two nodes above, you just have to demonstrate that the equality is true at the top of the triangle

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2018-03-19 11:11 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.