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

PPX usage #14

Open
cometkim opened this issue Feb 21, 2021 · 3 comments
Open

PPX usage #14

cometkim opened this issue Feb 21, 2021 · 3 comments
Assignees

Comments

@cometkim
Copy link
Member

cometkim commented Feb 21, 2021

It will be very nice if we support some syntax sugar using PPX

// let binding style
let%vec v = [1, 2, 3]
// extension
let v = %vec([1, 2, 3])

// thought it might be `vector{ 1, 2, 3 }` in the future, hope so

// turn into this:
let v = Vector.fromArray([1, 2, 3])
@cometkim
Copy link
Member Author

This will need native stuff and esy configuration. But I can support :)

@cometkim cometkim self-assigned this Feb 21, 2021
@mununki
Copy link

mununki commented Apr 8, 2022

since the syntactic sugar was disappeared, let%vec v = ... seems not possible as far as I know. But the using extension would be feasible.

let v = %vec([1,2,3])

I think I can contribute to it. Do you want me to make a PR for this feature?

@namenu
Copy link
Collaborator

namenu commented Apr 8, 2022

Yes please!

@mununki mununki mentioned this issue Apr 8, 2022
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

3 participants