On Sun, Jun 07, 2020 at 04:45:16PM +0100, Richard Hainsworth wrote:
> Todd
> 
> I'm answering this question in the main list to explain some shortcuts.
> 
> Just to make sure it all works (if Windows will accept GTK), copy the
> program from the Readme to a script file and run it with raku.
> 
> Playing around with it should make things clear.
> 
> On 07/06/2020 07:16, ToddAndMargo via perl6-users wrote:
[snip]
> > 7) why is there no "show-countdown"?
> 
> There is! `:show-countdown` is named parameter to the method 'show', and an
> example is shown.
> 
> By default `:show-countdown` is True, so there is no need to set it if you
> want a countdown. If you dont want a count-down shown, then you need to set
> `:!show-countdown` , which in itself is a shortcut for
> `show-countdown(True)` . This was one of the examples.

Just a minor point: ITYM "a shortcut for show_countdown(False)" :)

> Those shortcuts are becoming fairly common raku idioms. I didn't think it
> would be necessary to document them.

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.net r...@debian.org p...@storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13

Attachment: signature.asc
Description: PGP signature

Reply via email to