Closed PierreR closed 6 years ago
What is that supposed to do ?
Oh my, this is a complicated feature again ...
I think I implemented with
:)
Cool.
It would be nice to support the case when the with
statement is an expression:
$fruit = with("apples", "oranges") |$x, $y| {
"${x} and ${y}"
}
ERROR: (swarm.manager.dev) This type of lambda function is not supported yet by language-puppet! with at ./modules/application/manifests/role/swarm/test.pp:4:3
Ah right.
It would be nice to rewrite it all though.
(currently "statements" and "expressions" are distinct things, which was the case before the "future parser")
should work now