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

Empty is mentioned but not explained #2721

Open
gfldex opened this issue Apr 24, 2019 · 5 comments

Comments

Projects
None yet
4 participants
@gfldex
Copy link
Contributor

commented Apr 24, 2019

  • Empty is a very special value not just in for loops. Yet the docs don't explain what it does at all. At least in /language/control there should be a link to its definition.

  • Also there is no note what loop constructs do on undefined values.

  • There may be the related issue of binding on returned values when there is no container in /type/Nil and /type/Routine .

@JJ

This comment has been minimized.

Copy link
Contributor

commented Apr 24, 2019

We should definitely do something. Thanks for the report.

@JJ JJ added docs RFE big labels Apr 24, 2019

JJ added a commit to JJ/my-perl6-examples that referenced this issue Apr 25, 2019

JJ added a commit that referenced this issue Apr 25, 2019

Adds Empty in the context of loops
Refs #2721, partially fulfilling it.

JJ added a commit that referenced this issue Apr 30, 2019

@lizmat

This comment has been minimized.

Copy link
Member

commented May 11, 2019

Maybe expand the section at https://docs.perl6.org/type/Slip#constant_Empty and refer to there from everywhere in the docs where Empty is mentioned?

@JJ

This comment has been minimized.

Copy link
Contributor

commented May 11, 2019

We'll try to do that too, but actually the first part of the OP was kinda solved; the second paragraph is the done I'm kind of lost about.

@rafaelschipiura

This comment has been minimized.

Copy link
Contributor

commented May 11, 2019

@gfldex Could you clarify what you mean by the last paragraph?

@lizmat

This comment has been minimized.

Copy link
Member

commented May 11, 2019

/me hates dual issue issues :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.