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

built in print() command returns nil #2

Open
Your-God opened this issue Jun 19, 2022 · 1 comment
Open

built in print() command returns nil #2

Your-God opened this issue Jun 19, 2022 · 1 comment

Comments

@Your-God
Copy link

Whenever you can print() in the command line; it adds an additional 'nil' line at the end.
I assume this is a bug because it doesn't happen to any user implemented commands.

@ravener
Copy link

ravener commented Oct 4, 2022

This is expected because print returns nothing which is nil, the console prints the value the last expression evaluated to and print indeed evaluates to nil, just that its side effect is to print the text.

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

2 participants