David Denton
Apr 4, 2021

True — the only real advantage for this first use-case is for IDE friendliness — which means that all of the options for Validations are available in a single place (by typing Validation + ‘.’ + Cmd<Space>). Without that you’d need to know of the exact existence of the function that you wanted to call instead of being able to select it from a dropdown.

As you start to get more and more examples scattered around your code, this type of thing starts to pay off. It’s hard to demonstrate in such a small example.

David Denton
David Denton

Written by David Denton

Engineering Lead // Open Source // Trainer // Speaker // Kotlin GDE // Co-creator of http4k

Responses (1)