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

RFE: dd in the docs #2314

Closed
ToddAndMargo opened this issue Sep 17, 2018 · 13 comments
Closed

RFE: dd in the docs #2314

ToddAndMargo opened this issue Sep 17, 2018 · 13 comments

Comments

@ToddAndMargo
Copy link

Request for Enhancement: please add dd to the "routine" docs

https://docs.perl6.org/routine/dd
404: Page Not Found

Search does not work either

$ p6 'my Real $x; $x = 3.1415; dd $x;'
Rat $x = 3.1415

And in the description, please state why dd thinks a Real is a Rat

Many thanks,
-T

@JJ
Copy link
Contributor

JJ commented Sep 17, 2018

dd is not part of the language, but part of the implementation; that is, it's Rakudo-specific, not Perl 6-specific. #2057 specifically forbids from using it in the documentation, and as a matter of fact, it's not part of the test set (roast) either. All uses of dd were changed in #1680 . S

@JJ JJ closed this as completed Sep 17, 2018
@JJ
Copy link
Contributor

JJ commented Sep 17, 2018

The Real vs. Rat issue is something completely different, and it has to do with the dynamics of assignment. First,

say 3.1416.^name;# OUTPUT: «Rat␤»

Then, Real is just a Role, it's not a class or Type. While $x is not a Real, it still does Real:

my Real $x := 3.1415;
say $x ~~ Real; # OUTPUT: «True␤»

You can use Roles to declare variables, but their class is not going to be changed.

@ToddAndMargo
Copy link
Author

ToddAndMargo commented Sep 17, 2018 via email

@JJ
Copy link
Contributor

JJ commented Sep 17, 2018

Thanks for taking this in good stride. No, Rakudo is not going away. yes, @timotimo is great. Yep, you can use it however you want.
But.
This repo is for "Perl 6" documentation. Not for "This implementation which is immensely popular, and, to be sincere, the only one". When there's no other way out than describing something that is Rakudo specific (say, when it's used for implementing some feature and is also user-facing) we take extreme care to make it very clear that it's Rakudo specific, so use it only under your responsability. In general, we would like Rakudo to implement their specific things, but they are not doing it: rakudo/rakudo#1941.
So see, this is not per se about dd. It's about documenting Rakudo specific features, which is totally not my turf. And even if it was, rules as I have pointed out are quite strict: don't. So I'm really sorry about this. If you want to reopen my issue in Rakudo, or open your own asking for documentation of Rakudo-specific routines and classes, I'll thumbs-up it, because that's something that is missing.

@AlexDaniel
Copy link
Member

AlexDaniel commented Sep 17, 2018

But dd is documented. Here: https://docs.perl6.org/programs/01-debugging#index-entry-dd

@ToddAndMargo is there any reason why you were looking at https://docs.perl6.org/routine/dd ?

You said that search does not work but it does for me, can you please double check?

@AlexDaniel AlexDaniel reopened this Sep 17, 2018
@ToddAndMargo
Copy link
Author

ToddAndMargo commented Sep 18, 2018 via email

@zoffixznet
Copy link
Contributor

is there any reason why you were looking at https://docs.perl6.org/routine/dd ?

FWIW, I always look up types and routines by just going to /routine/ or /type/ URLs directly. The perl6.party website even has markup shortcut for linking to docs that works on that assumption...

@ToddAndMargo
Copy link
Author

ToddAndMargo commented Sep 20, 2018 via email

@coke
Copy link
Collaborator

coke commented Sep 21, 2018

So, given that 'dd' is searchable, I think that's fine. There's another ticket (long open but I still hope we get there: #1099) about adding a server side search feature, which would let you do a real search for dd (or subs, or methods) without having to assume the structure of the website.

@ToddAndMargo
Copy link
Author

ToddAndMargo commented Sep 21, 2018 via email

@JJ
Copy link
Contributor

JJ commented Sep 22, 2018

It is open.

@coke
Copy link
Collaborator

coke commented Sep 25, 2018

BTW, When I search for dd, there is a response that is just dd. It's under the "Reference" section.

There are other search related tickets for improving the results of the search process; forcing dd to sit in a certain URL path is a very specific way to fix this issue; Improving the search mechanism is a much more generic way that will, I think, have a bigger positive impact.

@ToddAndMargo
Copy link
Author

ToddAndMargo commented Sep 25, 2018 via email

JJ added a commit that referenced this issue Nov 30, 2018
@JJ JJ closed this as completed in 31dec6c Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants