develooper Front page | perl.perl6.users | Postings from September 2018

.new?

Thread Next
From:
Todd Chester
Date:
September 14, 2018 10:30
Subject:
.new?
Message ID:
436ad43d-6e2e-3a5a-0ec1-ee77b09173bf@zoho.com
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About