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

Namespaces #26

Open
3 tasks
alcides opened this issue Mar 2, 2024 · 0 comments · May be fixed by #7
Open
3 tasks

Namespaces #26

alcides opened this issue Mar 2, 2024 · 0 comments · May be fixed by #7
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alcides
Copy link
Owner

alcides commented Mar 2, 2024

We want Lean's namespaces for the following reason:

  • We want to group functions that we can import for synthesis (or that we want to ignore as a whole).
  • We want to be able to define List.map, and then if the name of the type (constructor) is the same of a namespace, you can do: #[1,2,3].map (\x -> x + 1)

The way it should be implemented:

  • Add support for using the "." in the identifiers of function definitions.
  • Add support for using "." in variables.
  • Verify that TypingContext and EvaluationContexts have the right names.
@alcides alcides added the good first issue Good for newcomers label Mar 2, 2024
@alcides alcides linked a pull request Mar 2, 2024 that will close this issue
3 tasks
@alcides alcides added enhancement New feature or request help wanted Extra attention is needed labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant