user-pic

coke

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

  • 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.

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

    Very nice article, thank you very much Ovid!

    One question though, about this code:

    die unless $_[0] =~ /^\d+$/;

    One obvious bug is that it will accept octal numbers such as "040". Will the Perl6 "Int" type prevent such numbers?

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.