mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
Provide a shorthand for writing out multiple let statements
#318
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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: