-
Notifications
You must be signed in to change notification settings - Fork 63
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
Janet Introduction: Replace (all-bindings) with (doc) for REPL #248
Conversation
I think it's possible the original intent of using the phrase "print out" was to suggest that one would end up seeing something on the screen (so the phrasing might have been intended in a generic sense). I agree that "print out" does have a technical meaning that is different from "returning a value" (especially in a lispy language) so I can see that the documentation, as it is currently, might lead to some confusion. Although the current state of the PR may be less confusing, by eliminating the mentioning of May be
could be added to the end of the proposed changes? |
I assume that at one point I wouldn't be opposed to retaining a reference to However, I can't come up with a scenario where a beginner (somebody viewing the 'Introduction' page with installation instructions/hello world) would want to be aware of the |
TLDR; I did a bit of research into the history of the code and my impression is that
Having Doesn't that seem worthwhile? If interested in the longer version... I think this commit may have been close to where that wording showed up. It seems to have been a modification of docs that used to live in the main language's repository. I think there was a document named
At that time, it looks like
It's true that currently
If that is instead made to be
invoking |
Yes, this reasoning sounds good to me. (well put!) Nice investigation. I'll replace the reference to |
@sogaiu Anything else I can do on this? |
@27theo Athough I comment on things, I think my merging responsibilities extend to the So to answer your question, I think we wait (^^; (To be clear, as far as I'm concerned, the PR LGTM in its current state). |
It seems that all-bindings is still referenced on the janet-lang.org homepage: |
@elfenermarcell A PR sort of along similar lines has been made in #277. |
I'm running Janet version
1.37.1-homebrew
.See the introduction page at https://janet-lang.org/docs/index.html:
(all-bindings)
does not 'print out' all global functions when executed in the REPL, rather it returns them.This is already alluded to in the welcome message of the REPL, and the README of
janet-lang/janet
:The
(doc)
macro does print out all global functions when executed in the REPL:Tiny nitpick, but may save other beginners a bit of confusion.
Thanks for a great doc website for a great language!