General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Brent Jacobs
ThePrimeTime
comments
Comments by "Brent Jacobs" (@br3nto) on "Why Kotlin Is The Best Language (to use with htmx)" video.
7:32 stolen from Ruby!!! Ruby does this too. It is a very cool useful feature!! Works well not just with DSL building, but also iteration. It’s kinda like continuations.
1
8:02 Ruby also has syntax so you can pass objects to the block (Ruby calls trailing lambdas, blocks, and you take different actions whether the block is defined or not). I assume Kotlin would have similar syntax. Usually you would pass in builders or configurable options to the block that you can set inside the lambda. But Ruby also allows you to set the scope of the block to some other object, or to marshal calls to some other object. I wonder if Kotlin allows you to do this too.
1
9:08 oh it looks like you can do that I. Kotlin too!! Awesome 🎉
1