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

Should Adept support type inference? #306

Open
ghost opened this issue Feb 11, 2024 Discussed in #158 · 5 comments
Open

Should Adept support type inference? #306

ghost opened this issue Feb 11, 2024 Discussed in #158 · 5 comments

Comments

@ghost
Copy link

ghost commented Feb 11, 2024

Discussed in #158

Originally posted by ghost September 30, 2023
It's something very useful to have. Type inference is not something specific to dynamic languages. Static typing languages still can support type inference. For example, C++'s auto.

LSP is available now (I have never tested it, though). But, it's time to consider support for type inference.

@ghost ghost closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2024
@IsaacShelton
Copy link
Collaborator

Type inference could be re-considered now yes, although it might not appear until v3.0 since it may require some reworking of compiler internals

@ghost ghost reopened this Feb 16, 2024
@ghost
Copy link
Author

ghost commented Feb 16, 2024

Which syntax will you use for type inference?

@IsaacShelton
Copy link
Collaborator

The syntax is still undecided,

the most promising is something like let x = 10 or x := 10

@ghost
Copy link
Author

ghost commented Feb 21, 2024

This will happen on Adept 2.8 or Adept 3.0?

@IsaacShelton
Copy link
Collaborator

Most likely not until 3.0, as the 2.8 compiler would need some significant restructuring for it to work

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

1 participant