Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku is built on a metaobject layer. That means that there are objects (the metaobjects) that control how various object-oriented constructs (such as classes, roles, methods, attributes or enums) behave.| docs.raku.org
Signatures appear inside parentheses after subroutine and method names, on blocks after a -> or <-> arrow, as the input to variable declarators like my, or as a separate term starting with a colon.| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
This section explains how raw data, variables and containers relate to each other in Raku. The different types of containers used in Raku are explained and the actions applicable to them like assigning, binding and flattening. More advanced topics like self-referential data, type constraints and custom containers are discussed at the end.| docs.raku.org
Raku highlighting| docs.raku.org
Abstract class§| docs.raku.org
Raku highlighting| docs.raku.org
Grammar is a powerful tool used to destructure text and often to return data structures that have been created by interpreting that text.| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Raku highlighting| docs.raku.org
Routines are one of the means Raku has to reuse code. They come in several forms, most notably Methods, which belong in classes and roles and are associated with an object; and functions (also called subroutines or Subs, for short), which can be called independently of objects.| docs.raku.org
Statements§| docs.raku.org
Raku provides a rich built-in syntax for defining and using classes. It makes writing classes expressive and short for most cases, but also provides mechanisms to cover the rare corner cases.| docs.raku.org
Variables are symbolic names for values or containers. Variable declarations or assignment of values may create a container on the fly. Variable names can start with or without a special character called a sigil, followed optionally by a second special character named twigil and then an identifier.| docs.raku.org
See creating operators on how to define new operators.| docs.raku.org