Compound data type: Difference between revisions

→‎Class instance: minor simplifications, + type constraint
(→‎Class instance: minor simplifications, + type constraint)
Line 2,286:
 
===Class instance===
<syntaxhighlight lang="raku" line>class Point { has Real ($.x is rw; has, $.y) is rw; }
my Point $point .= new(: x => 3, y => 8);</syntaxhighlight>
 
===[http://design.raku.org/S32/Containers.html#Set Set]===
1,934

edits