myaccountonhn 4 days ago

You're correct. As other comments pointed out, this is an OOP builder pattern:

`container().from('alpine').withExec(args: ["apk", "add"]).terminal()`

If it was unix pipes, they'd be context independent tools being composed together.

Dagger can be a useful but I feel a bit deceived, and it makes me worry about the rest of the quality of this product.

1
levlaz 4 days ago

It’s similar to a builder pattern but not just a builder pattern because depending on the type you can indefinitely pipe context independent types.

So it’s a bit of a hybrid between bash and powershell.

Kinrany 4 days ago

Yeah this is method chaining, and method chaining is not the same as piping.