Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Perl6, latest Rakudo bug or error on my part?

by Utilitarian (Vicar)
on Aug 07, 2010 at 16:08 UTC ( #853585=note: print w/replies, xml ) Need Help??

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 :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853585]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-12-17 00:50 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (459 votes). Check out past polls.