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

Bring math, random and time symbols into global namespace #99

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

keith-packard
Copy link
Owner

Get rid of the math., time. and random. prefixes so that these symbols are easier to use.

Was using \s for whitespace instead of \\s

Signed-off-by: Keith Packard <[email protected]>
Provide alias for 'pow', clean up inf and nan definitions.

Signed-off-by: Keith Packard <[email protected]>
Add '--global' parameters to snek-builtin.py to match namespaces from
builtin function names, removing those namespaces so that the names
appear in the global namespace.

By default, the math, time and random namespaces are removed.

Signed-off-by: Keith Packard <[email protected]>
@keith-packard keith-packard force-pushed the from-import branch 2 times, most recently from 3798923 to 8ed8178 Compare October 28, 2024 00:18
Fix all of the code to remove math., time. and random.

Signed-off-by: Keith Packard <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant