Closed jubilatious1 closed 4 years ago
Would you like to make a pull request against that article to fix the code?
@briandfoy I can certainly do that, but for historical purposes I probably won't change the original article. My instinct is to add an addendum to the end of the article, and make sure the original author is given the opportunity to sign off on it.
Just change the original article. The source is all in GitHub, and the article is 13 years old.
FWIW, this has been an error in any released version of Perl 6 or Raku.
FWIW, this has been an error in any released version of Perl 6 or Raku.
Well, that makes it easy then. Somehow I thought the code worked when it was published--but if it never worked, it should be fixed.
Well, in the early days of Pugs all sorts of things that shouldn't have worked might have worked. I doubt anyone is going to go back to find out.
But, my main question to the Raku people is which version of the fix would you like?
But, my main question to the Raku people is which version of the fix would you like?
I can't speak for anyone else, but giving the reader (presently) working code is desirable.
(and maybe even a TIO link... https://tio.run/#perl6 )
I can't speak for anyone else, but giving the reader (presently) working code is desirable.
Would you like 9.Num
or 9e0
?
Would you like
9.Num
or9e0
?
I defer to @lizmat on that decision.
9e0
I've fixed this in 66ebf51c1d0f0df11560485e5109afeb7281eda4 and it will be part of the next site refresh.
https://www.perl.com/pub/2007/03/01/perl-6-parameter-passing.html/ https://github.com/tpf/perldotcom/blob/master/content/legacy/_pub_2007_03_01_perl-6-parameter-passing.md
CodeNotes