yes, basically, but it has a lot more uses!, for example there is a library that allows you to write html using extension lambdas and it looks like this:
html { head { title { +"Page title" } } body { h1{ + "Cool article" } p { +"article content" } } }
they have the same flexibility as normal lambdas but with a lot less boilerplate
Wow that’s elegant. I imagine you get the added benefit of type checking and whatnot, right?
Yes!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
yes, basically, but it has a lot more uses!, for example there is a library that allows you to write html using extension lambdas and it looks like this:
they have the same flexibility as normal lambdas but with a lot less boilerplate
Wow that’s elegant. I imagine you get the added benefit of type checking and whatnot, right?
Yes!