Raku / book

Using Raku – an unfinished book about Raku
https://perl6book.com/
284 stars 49 forks source link

Using Perl6: Section 5.2: why encourage trickery? #32

Closed jkeenan closed 14 years ago

jkeenan commented 14 years ago

This section includes language such as: "This restriction allows a clever compiler optimization ..." and "With some trickery ..."

Wouldn't this be more appropriate in an O'Reilly book "Perl 6 Hacks"? Why should an introductory-level user of Perl 6 be at all interested in compiler optimizations? Is "trickery" the main reason a person should learn Perl 6?

moritz commented 14 years ago

This section doesn't teach trickery, just explains some background; so I can't really understand your criticism.

We should do a better job at explaining type objects though, so we could get rid of the trickery part.

moritz commented 14 years ago

I've now got rid of the trickery part in sha1:a20b738f46d351e18acd61c1946290e9e540055f, I hope it's clearer now.

I'll retain the section about the optimization, because it provides valuable background about why things are as is.