Skip to content

provide pie-chart, bar-chart, dot-plot, labeled-dot-plot, E #596

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

Open
wants to merge 2 commits into
base: horizon
Choose a base branch
from

Conversation

ds26gte
Copy link
Contributor

@ds26gte ds26gte commented Aug 9, 2025

No description provided.

- define & provide E to prevent users using E casually
@@ -242,3 +247,5 @@ fun count-many(tab, cols):
end)
end
end

E = ~2.718281828459045
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is defined in constants, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, however dcic2024.arr includes essentials2024.arr, which already sources constants.arr but deliberately only takes PI.

Ideally we should change essentials2024.arr to also take E from constants.arr, but I didn't want to disturb anything there, especially if there is user code that uses E as a regular variable (i.e., without shadow).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But in this context can't you just import constants as C and then provide from C: E end?

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.

2 participants