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

Let expression? #20

Open
ahdinosaur opened this issue Aug 22, 2023 · 2 comments
Open

Let expression? #20

ahdinosaur opened this issue Aug 22, 2023 · 2 comments
Labels
question Further information is requested

Comments

@ahdinosaur
Copy link
Owner

ahdinosaur commented Aug 22, 2023

let (a = 10, b = 20) { a + b }
let (
  a = 10,
  b = 20,
  c = 40,
) {
  a + b / c
}

OR

let a = 10, b = 20 { a + b }
let
  a = 10,
  b = 20,
  c = 40,
{
  a + b / c
}
@ahdinosaur
Copy link
Owner Author

or

let (a = 10, b = 20) => a + b
let (
  a = 10,
  b = 20,
  c = 40,
) => a + b / c

@ahdinosaur
Copy link
Owner Author

or inspired by Nix's expression language

let a = 10, b = 20 in a + b
let
  a = "oh my",
  b = "hello",
  c = "world",
in join([a, b, c], " ")

@ahdinosaur ahdinosaur changed the title let expression Let expression? Sep 14, 2023
@ahdinosaur ahdinosaur added the question Further information is requested label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant