Skip to content

PPX usage #14

@cometkim

Description

@cometkim

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])

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions