News for hackers. Stuff that matters.
Re:Larry Wall's Perl 6 Release Talk [video] by drwoland on Saturday November 14, 2015 @05:30AM (#10565218)
I have to work with a legacy Perl codebase most weeks and I've been ignoring Perl 6 because upgrading our interpreter version is difficult for a bunch of reasons to boring to go into.

I'd been naively holding out a hope that Perl 6 would improve things so I clicked on the Perl 6 for Perl 5 programmers link from perl6.org.

They added code block interpolation to strings:

  #!/usr/bin/env perl6
  my $number = 3;
  say( "{ $number * 4 }" ); # prints 12
Re:Larry Wall's Perl 6 Release Talk [video] by leejo on Saturday November 14, 2015 @05:39AM (#10565230)
You can do that already in perl 5:

    > perl -E 'my $i = 1; say "@{[ sin $i ]}";'
    0.841470984807897
perl 6 will improve things, it has a huge feature set.
Re:Larry Wall's Perl 6 Release Talk [video] by Mithaldu on Saturday November 14, 2015 @06:08AM (#10565277)
This is little different from something like:

  #!/usr/bin/env perl6
  my $number = 3;
  printf( "%s\n", $number * 4 ); # prints 12
What is your complaint?
Re:Larry Wall's Perl 6 Release Talk [video] by ab5tract on Saturday November 14, 2015 @06:43AM (#10565346)
Really? printf is cool and useful for it's own domain. But there is a reason that languages provide interpolation. And the simplest possible example above is not one of those reasons.
Re:Larry Wall's Perl 6 Release Talk [video] by Mithaldu on Saturday November 14, 2015 @06:50AM (#10565359)
You imply, but fail to make any actual points or explanations.
Re:Larry Wall's Perl 6 Release Talk [video] by ab5tract on Saturday November 14, 2015 @11:55AM (#10566283)
I'm not going to bother convincing you that printf is not the highest form of string interpolation. Seems like you've got your bases covered pretty well.
Re:Larry Wall's Perl 6 Release Talk [video] by Mithaldu on Saturday November 14, 2015 @01:06PM (#10566569)
I never said printf is the highest form, nor did i imply it. If you think i did imply that, and you consider it to be ridiculous, then it would behoove you to ask if i did mean to imply that or not; instead of assuming that your interpretation of my words is fact and i am being ridiculous.

I consider printf an acceptable form of string interpolation, nothing more.

Re:Larry Wall's Perl 6 Release Talk [video] by mj41 on Saturday November 14, 2015 @02:29PM (#10566872)