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

「StrDistance」 not documented #691

Closed
AlexDaniel opened this issue Jul 11, 2016 · 9 comments
Closed

「StrDistance」 not documented #691

AlexDaniel opened this issue Jul 11, 2016 · 9 comments
Assignees
Labels
docs Documentation issue (primary issue type) NOTSPECCED need roast tests before documenting

Comments

@AlexDaniel
Copy link
Member

http://irclog.perlgeek.de/perl6/2016-07-11#i_12823412

@peschwa said that it is internal-ish, but given that it is available to any user it should be documented anyway.

@AlexDaniel AlexDaniel added the docs Documentation issue (primary issue type) label Jul 11, 2016
@gfldex
Copy link
Contributor

gfldex commented Jul 12, 2016

There are no spec tests for this sub. It is therefore not part of the Perl 6 language. It is a helper function to implement sub tr and different implementations may decide to use a different algorithm.

It is not the job of the docs to force the hand of the language designer. If you believe this implementation detail should be elevated to a language feature file a RT against roast.

@gfldex gfldex closed this as completed Jul 12, 2016
@AlexDaniel AlexDaniel added the NOTSPECCED need roast tests before documenting label Jan 1, 2017
@AlexDaniel
Copy link
Member Author

Right. But it seems that nowadays we keep NOTSPECCED issues open.

@AlexDaniel AlexDaniel reopened this Jun 29, 2017
@AlexDaniel
Copy link
Member Author

Also, there's at least one test that uses StrDistance…

@JJ JJ self-assigned this Feb 10, 2018
@zoffixznet
Copy link
Contributor

Also, there's at least one test that uses StrDistance…

If that's the only one, then it won't make the 6.d review cut, as it merely used as many of the types it could to test Rat/FatRat coercion, rather than speccing that StrDistance is a thing.

@peschwa
Copy link

peschwa commented Feb 13, 2018 via email

@AlexDaniel
Copy link
Member Author

So I'm thinking, if we don't want to spec StrDistance, do we really want the return value of tr/// to be unspecified?

$_ = abcd; say tr/bd/BD/   # StrDistance.new(before => "abcd", after => "aBcD")

@JJ
Copy link
Contributor

JJ commented Mar 3, 2018 via email

JJ added a commit that referenced this issue Mar 4, 2018
@JJ
Copy link
Contributor

JJ commented Apr 18, 2018

So, do we leave it notspecced or we use one of the tests there to document it?

@JJ
Copy link
Contributor

JJ commented Apr 18, 2018

Also, there are several examples now

@JJ JJ removed the JJ TPF Grant label May 14, 2018
@JJ JJ closed this as completed in b0e6792 May 19, 2018
Kaiepi pushed a commit to Kaiepi/doc that referenced this issue May 22, 2018
This issue was closed.
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) NOTSPECCED need roast tests before documenting
Projects
None yet
Development

No branches or pull requests

5 participants