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

Array forwards to the prelude #4682

Open
wants to merge 10 commits into
base: trunk
Choose a base branch
from

Conversation

danakj
Copy link
Contributor

@danakj danakj commented Dec 13, 2024

We propose to add Core.Array(T, N) as a library type in the prelude library of the Core package. Since arrays are a very frequent type, we propose to privilege use of this type by providing a builtin Array(T, N) type that resolves to the Core.Array(T, N) type. Users can model this as an implicit import of the Core.Array(T, N) type into the global scope, much like the implicit import of the prelude library of the Core package.

@danakj danakj added proposal A proposal proposal draft Proposal in draft, not ready for review labels Dec 13, 2024
@danakj danakj force-pushed the proposal-array-forwards-to-th branch from e5ce9a2 to 1eac5a0 Compare December 13, 2024 15:02
@danakj danakj force-pushed the proposal-array-forwards-to-th branch 4 times, most recently from 7729072 to 41cdb12 Compare January 8, 2025 19:35
@danakj danakj marked this pull request as ready for review January 8, 2025 19:36
@github-actions github-actions bot added proposal rfc Proposal with request-for-comment sent out and removed proposal draft Proposal in draft, not ready for review labels Jan 8, 2025
@danakj danakj requested review from zygoloid and chandlerc January 8, 2025 19:36
@github-actions github-actions bot requested a review from KateGregory January 8, 2025 19:36
We propose to add `Core.Array(T, N)` as a library type in the `prelude`
library of the `Core` package. Since arrays are a very frequent type,
we propose to privilege use of this type by providing a builtin
`Array(T, N)` type that resolves to the `Core.Array(T, N)` type. Users
can model this as an implicit import of the `Core.Array(T, N)` type
into the global scope, much like the implicit import of the `prelude`
library of the `Core` package.
@danakj danakj force-pushed the proposal-array-forwards-to-th branch from 41cdb12 to fca98cc Compare January 8, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal rfc Proposal with request-for-comment sent out proposal A proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant