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

Add ... hole token/expression #19

Open
thinker227 opened this issue Apr 3, 2024 · 0 comments
Open

Add ... hole token/expression #19

thinker227 opened this issue Apr 3, 2024 · 0 comments

Comments

@thinker227
Copy link
Owner

thinker227 commented Apr 3, 2024

Add ... as a "hole" which acts an an inline comment.

let x = ...;

func f(...) => ...;

func g(x) {
    print(x);
    ...
    print(y);
}

In place of an expression, ... could potentially evaluate to a runtime "not implemented" error. In any other place it should act as a comment without affecting surrounding code.

@thinker227 thinker227 changed the title Add ... comment token/expression Add ... hole token/expression Apr 20, 2024
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