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

Proposal: explicit invocation syntax #48

Open
vknabel opened this issue Jul 28, 2023 · 0 comments
Open

Proposal: explicit invocation syntax #48

vknabel opened this issue Jul 28, 2023 · 0 comments
Assignees
Labels
proposal Lithia Evolution proposal or draft

Comments

@vknabel
Copy link
Owner

vknabel commented Jul 28, 2023

Introduction
Functions should be called similar to other languages: f(a, b).

Motivation
The current syntax tries to avoid parentheses at all costs and gets confusing and barely unreadable if no highlighting is available.

Proposed Solution
Functions should be called similar to other languages: f(a, b).

This change breaks every file, which can be a benefit during the eager migration as proposed in #48.

data Greeter {
  greet(name)
}

extern print(msg)

func abc(a, b) { }
func abc { a, b => }

abc(a, b)

Variations
Eventually allow the old syntax later for statements and complex invocation expressions only.

@vknabel vknabel added the proposal Lithia Evolution proposal or draft label Jul 28, 2023
@vknabel vknabel added this to the v0.1.0 The eager update milestone Jul 28, 2023
@vknabel vknabel self-assigned this Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Lithia Evolution proposal or draft
Projects
None yet
Development

No branches or pull requests

1 participant