Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

&emit and &done undocumented #1032

Closed
zoffixznet opened this issue Dec 4, 2016 · 10 comments
Closed

&emit and &done undocumented #1032

zoffixznet opened this issue Dec 4, 2016 · 10 comments
Assignees
Labels
docs Documentation issue (primary issue type)

Comments

@zoffixznet
Copy link
Contributor

The subroutine emit doesn't seem to be documented. Only methods on various classes listed in https://docs.perl6.org/routine/emit

@zoffixznet zoffixznet added the docs Documentation issue (primary issue type) label Dec 4, 2016
@jonathanstowe
Copy link
Contributor

Presumably the same applies to done - I actually thought they were inserted into the scope of the supply { } or react { } and didn't have a separate existence. However they may not want to be documented standalone but rather as part of the asynchronous mini language ....

@jnthn
Copy link
Contributor

jnthn commented Dec 4, 2016

They are normal subroutines that throw control exceptions, just like take and last.

@jonathanstowe
Copy link
Contributor

yeah I realised that after I looked at the souce, however if they are documented as being standalone subroutines then there will need to be a load of boilerplate explaining how they only work in a certain context, so to avoid that it might be better to treat them as if they were special syntactical items (in my mind at least.)

@zoffixznet
Copy link
Contributor Author

a load of boilerplate explaining how they only work in a certain context

Wouldn't it be just a single sentence? Just like with take: https://docs.perl6.org/routine/take

@JJ
Copy link
Contributor

JJ commented Feb 10, 2018

Where would that go?

@AlexDaniel
Copy link
Member

@JJ I was about to say “same place where &done is documented”, but it seems that sub &done is not documented also…

@AlexDaniel
Copy link
Member

Maybe somewhere on https://docs.perl6.org/language/functions?

@JJ
Copy link
Contributor

JJ commented Feb 10, 2018

We need to fix this "not documented" thing using code... Maybe create a test or something. They stay open for ever, even when they are fixed.
But functions would be a good place.

@JJ JJ self-assigned this May 15, 2018
@JJ
Copy link
Contributor

JJ commented May 29, 2018

Functions would not be a good place. It's mainly devoted to functional programming. So I'm starting a brand new page, This will help #2059 too.

@JJ JJ closed this as completed in 8beea64 May 29, 2018
@JJ JJ changed the title &emit undocumented &emit and &done undocumented May 29, 2018
@JJ
Copy link
Contributor

JJ commented May 29, 2018

&emit is done, &done is not. I'm reopening to do it.

@JJ JJ reopened this May 29, 2018
@JJ JJ closed this as completed in d924476 May 29, 2018
@JJ JJ reopened this May 18, 2019
@JJ JJ closed this as completed in d48f966 May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

5 participants