Perl 6 has “gradual typing”. I can constrain values when I like, and let them run free otherwise. User-defined data types are one of the Perl 6 features that excite […]
Read moreCategory: Kickstarter Tips
Quick Tip #8: Perl 6 sets
Perl 6 has proper sets and set-like types, along operators to do proper set operations.
Read moreQuick Tip #7: Texas and Unicode things
[“Texas” as a cute name has been changed to the less offensive and more prosaic “ASCII”] Perl 6 is more than Unicode “aware”—it reaches into the Unicode Character Database to […]
Read moreQuick Tip #6: Data dumping is built into Rakudo
I’ve often wished that Perl 5’s Data::Dumper was built into the language. I often have statements like:
Read moreQuick Tip #5: The Z=> zip operator, lazy ranges, and terse hash creation.
Perl 6 has some very sophisticated operators, and many of them naturally do the sorts of things that we do quite a bit unnaturally otherwise. The strength of these operators […]
Read moreQuick Tip #4: The Hamming Sequence and hyper-operators
The Hamming Sequence shows up in programming exercises. It’s the sequence of numbers that have only 2, 3, or 5 as divisors. The trick is to generate them in ascending […]
Read moreQuick Tip #3: Inclusive and Exclusive
Every day of the Learning Perl 6 Kickstarter campaign, I’ll present a quick tip about something I like in Perl 6. Yesterday I posted Fancier sequences. In that post I […]
Read moreQuick Tip #2: Fancier sequences
Every day of the Learning Perl 6 Kickstarter campaign, I’ll present a quick tip about something I like in Perl 6. Yesterday I posted User-defined infinite sequences. In that post […]
Read moreQuick Tip 1: User-defined infinite sequences
Every day of the Learning Perl 6 Kickstarter campaign, I’ll present a quick tip about something I like in Perl 6. Let’s start with sequences.
Read more