use v6; class Point { has $.x = 0; has $.y = 0; method gist { "[$.x, $.y]" } method set( :$x = $.x, :$y = $.y ) { $!x = $x; $!y = $y; } }