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

Type casting? #73

Open
ElianHugh opened this issue Sep 27, 2024 · 1 comment
Open

Type casting? #73

ElianHugh opened this issue Sep 27, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ElianHugh
Copy link

ElianHugh commented Sep 27, 2024

Sorry for opening so many issues -- this is a very exciting project :)

From what I understand with vapour, there's a plan to generate types for a lot of R, but that understandably wouldn't be feasible for every package and function. So, I suppose that either functions are imported as any typed, or you have to define types like in a types.d.ts file. Is my understanding correct?

In typescript, you can use the as keyword to tell the type checker a variable is a specific type. Is this something that might be useful for vapour? Maybe a different form because of the name collision with as.xyz()...

@JohnCoene
Copy link
Contributor

I didn't really think about type casting but it's probably something that should be added

I hope to start looking at lexing, and parsing R to see how difficult this type inference will be exactly (I suspect very).

@JohnCoene JohnCoene added the question Further information is requested label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants