Raku as a Foreign Language

For people who already know another programming language

Learn Raku the way you learned your second language.

Nobody learns a second language from zero. You read, you compare it with the one you know, you notice the words that fool you, and slowly you lose your accent. These articles teach Raku the same way, and every example runs in your browser.

Start hereFind your level

False friendA2
Python0.1 + 0.2 == 0.3False
Raku0.1 + 0.2 == 0.3True
Why the answers differ

Four kinds of articles

Each one practises a different skill, the way a language course mixes reading, vocabulary and pronunciation.

Find your level

Six levels, as in a language course. Read at your level, and then one above it.

Coming from another language?

False friends and accents start from what you already know.

Every example runs

The programs in these articles run in your browser, on Raku++ compiled to WebAssembly. Nothing is sent to a server. Change this one and press Run.

my @cities = 'Riga', 'Leiden', 'Turin';
say @cities[*-1];
say 'Riga'.comb;
say 0.1 + 0.2 == 0.3;

Raku as a Foreign Language is one part of Learn Raku. The others: A Tour of Raku, Raku Drills, Raku by example, The Raku Cookbook, Raku Behind the Docs.