in reply to SOLVED: Perl6, latest Rakudo bug or error on my part?

Thanks fod

I got it and came here to post when I saw your response, so space is meaningful, how very pythonesque

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Replies are listed 'Best First'.
Re^2: Perl 6, latest Rakudo bug or error on my part?
by chromatic (Archbishop) on Aug 07, 2010 at 20:12 UTC
    how very pythonesque

    Py tho nisn'ttheonl yla nguageinwhichtheappropriate useofwhitespacecontribu testoparsability;t rywritingadowhilel oopinPerl5withoutaspa cesom e t i me.

      Valid point, entertainingly made, and I am entirely sincere in my gratitude for the work you and others have put into Rakudo. It just seems strange, coming from Perl 5. that }else{ isn't parseable as I would expect.

      I spent a very educational weekend however and may even attempt, in my limited way, to contribute to the project.

      print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

        In all seriousness, there's a point at which disambiguation in the parser (whether software, hardware, or wetware) is just too much work, and a bit of punctuation makes that pain go away. You can take that too far (and in the case of Python, I have to read very carefully to figure out the relationships of blocks separated by vertical whitespace) but sometimes a little consistency is not a bad thing.

        Perl6 use the dot for method invocation and underscore for concatenation!!!!! Please adjust your expectations :)