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 aliases" like X{T} = Y{T, S} are not handled #11

Open
tkf opened this issue Nov 1, 2019 · 2 comments
Open

"Type aliases" like X{T} = Y{T, S} are not handled #11

tkf opened this issue Nov 1, 2019 · 2 comments

Comments

@tkf
Copy link
Contributor

tkf commented Nov 1, 2019

It seems that "type aliases" are not handled correctly at the moment:

julia> solve(:(X{T} = Y{T, S}))
:((@global X){@global T} = (@global Y){@global T, @global S})

I suppose the result should be

:((@global X){@T} = (@global Y){@T, @global S})

?

@thautwarm
Copy link
Member

Yes, it's a bit complex, and requires more efforts to match the correct semantics.
I remembered you've sent the link of the scheme file(julia-syntax.scm) which implements the syntax analysis, but it's in quite a huge scale so I cannot reach the same functions immediately.

@tkf
Copy link
Contributor Author

tkf commented Nov 1, 2019

Yes, Julia language is a huge target and I admire your courage to implement JuliaVariables.jl :)

the scheme file(julia-syntax.scm) which implements the syntax analysis

I'm not familiar with compiler/language things, but I thought this analysis is done while lowering. But I'm not sure.

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

2 participants