user-pic

coke

  • About: Perl 6 hacker
Subscribe to feed Recent Actions from coke

  • Timo Paulssen commented on Reconsidering Exercise 1

    Do note that you can use @*ARGS instead of providing a sub MAIN; though the latter will give you a usage message when you don't supply the max and if you write

    sub MAIN( Int $max = 1000 )
    instead, you'll even get a helpful error message if the user writes "over nine thousand" instead of a number.

    Also, for interpolating arrays into strings, you can also just write

    "My multiples are: @multiples[]".say;

    And another thing: I think "1 ..^ $max" looks prettier than "1 .. $max-1".

  • raiph commented on Exercise 1. 3s and 5s.

    In your P6 code you have this line of code:

    unless any(@multiples) $start {

    That looks like TTIAR (two terms in a row) to me (syntax error).

  • Olivier Mengué (dolmen) commented on Exercise 1. 3s and 5s.

    The code is still mangled :(

  • fibo commented on How do we know when a CORE module is deprecated?

    Come on, it's not that tragedy. On RedHat perl-CGI is already packaged.

    It is not that difficut to include instructions for those who want to port their CGI scripts.

    Something like


    sudo cpan CGI

    will do the trick ;)

    I think Perl can move on and remove CGI.pm from core modules.

    What it is really missing in the core, in my opinion, are IO::Socket::SSL and Plack.

    Look at Node.js core, for example http://nodejs.org/api/tls.html

    We need https!

  • Ovid commented on Avoid a Common Software Bug By Using Perl 6

    Manuel,

    That's actually deliberate. Perl 6 does have a type inference engine in the optimizer. However, type inference can often generate obscure errors that are hard to understand. Larry Wall has said that until they have a better handle on how to present those errors without dumping a mathematical proof on the user, many errors will remain runtime errors instead of compile time errors.

    Thus, simple cases like the one you've found will probably be added in the future, it's hard to say how far the Perl 6 devs will go with this.

Subscribe to feed Responses to Comments from coke

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.