I think the docs of objects (sorry on my phone no link) describe object creation and the default new quite well.
Do a search for objects. On Fri, 14 Sep 2018, 11:30 Todd Chester, <toddandma...@zoho.com> wrote: > Hi All, > > What exactly is going on with .new? > > https://docs.perl6.org/routine/new > method new(Telemetry::Sampler: @instruments --> Telemetry::Sampler:D) > > The whole thing went over my head. It looks like > specifications for the developers, but I really can't > tell. And it looks like it might be really handy. > > What can I use it for? > > > Also, does "Telemetry::Sampler" mean what it does in Perl 5, > which is a routine called "Sampler" found in the module > called "Telemetry"? > > Many thanks, > -T >