Perl6標準の文法は比較的大きいです。一度マスターすると表現が容易になりますが、それは習得の障壁となります。例えば、コア構築物は、しばしば、異なるプログラミングパラダイムをサポートする複数の形態を有する。基本的な例では、Pairsを作成するための構文の品種である:Perl6標準形式はありますか?
Pair.new('key', 'value'); # The canonical way
'key' => 'value'; # this...
:key<value>; # ...means the same as this
:key<value1 value2>; # But this is key => <value1 value2>
:foo(127); # short for foo => 127
:127foo; # the same foo => 127
注、特に、最初のフォームにコメント:「標準的な方法」。
別の例はthe documentation for method make
ある:
This is just a little sugar for $/.made = $ast which is a very common operation in actions.
はPerl6のプログラムのための1つの月の出力は、正規のサブ文法を習得した、一つにそのフォームで任意Perl6のプログラムを検査することができるようにすることを正規の形式がありますそれを理解する?
'make'は実際には砂糖ではなく、通常の方法とサブルーチンです。 –