Originally created by @KushalP on GitHub (Jul 8, 2025).
At the moment you can write multiple let statements as follows:
let (foo = 10)
let (bar = 42)
foo + bar
Provide a shorthand for writing out multiple let statements:
let (foo = 10,
bar = 42)
foo + bar
This is a suggestion for notation. The main thing would be to reduce the number of let expressions required to define a bunch of values.
Originally created by @KushalP on GitHub (Jul 8, 2025).
At the moment you can write multiple `let` statements as follows:
```pkl
let (foo = 10)
let (bar = 42)
foo + bar
```
Provide a shorthand for writing out multiple `let` statements:
```pkl
let (foo = 10,
bar = 42)
foo + bar
```
This is a suggestion for notation. The main thing would be to reduce the number of `let` expressions required to define a bunch of values.
A common syntax in languages that have a let expression is to have a let .. in ... syntax:
let
foo = 10
bar = 42
in
foo + bar
@DamianReeves commented on GitHub (Jul 10, 2025):
A common syntax in languages that have a let expression is to have a `let .. in ...` syntax:
```pkl
let
foo = 10
bar = 42
in
foo + bar
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @KushalP on GitHub (Jul 8, 2025).
At the moment you can write multiple
letstatements as follows:Provide a shorthand for writing out multiple
letstatements:This is a suggestion for notation. The main thing would be to reduce the number of
letexpressions required to define a bunch of values.@DamianReeves commented on GitHub (Jul 10, 2025):
A common syntax in languages that have a let expression is to have a
let .. in ...syntax: