News for hackers. Stuff that matters.
Re:What you can write in Perl 6 today by jrockway on Friday April 24, 2009 @12:10PM (#577682)
Wait, you're saying Lisp is simpler than Perl and then you use "use" and "require" as examples? How are "use" and "require" different from "(eval-when :compile-toplevel ..." and "(eval-when :load-toplevel ..." and "(eval-when :execute"?

Lisp and Python aren't as simple as you think they are, and Perl isn't as complicated, either.

Re:What you can write in Perl 6 today by utx00 on Friday April 24, 2009 @12:52PM (#577760)
different keywords passed to a well understood form: "eval-when". what each opt does can be horrendously complicated if you so chose. however i understand the evaluation rules and can just focus on learning what each option does. require on the other hand can take a string, but it can also take a VERSION expression that will then be compared to $]. but wait, there's more. it can also be a literal v5.6.1 - that works too. otherwise it will look for a library. if the expression is a bare word require will conveniently add the .pm for you, however notice that $lib = 'somelib' require $lib is not a bare word therefore you need to add the '.pm' ...

i'm tired already.

Re:What you can write in Perl 6 today by wolverian on Friday April 24, 2009 @02:34PM (#577953)
The original post was about Perl 6, though.
Re:What you can write in Perl 6 today by mahmud on Friday April 24, 2009 @03:28PM (#578063)
eval-when is black magic :-P