doc icon indicating copy to clipboard operation
doc copied to clipboard

Empty is mentioned but not explained

Open gfldex opened this issue 6 years ago • 5 comments

  • [x] 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.

  • [x] 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 .

gfldex avatar Apr 24 '19 19:04 gfldex

We should definitely do something. Thanks for the report.

JJ avatar Apr 24 '19 21:04 JJ

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?

lizmat avatar May 11 '19 10:05 lizmat

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.

JJ avatar May 11 '19 10:05 JJ

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

rafaelschipiura avatar May 11 '19 11:05 rafaelschipiura

/me hates dual issue issues :-)

lizmat avatar May 11 '19 11:05 lizmat