Hi, is there any way to have `required` parameter...
# announcements
j
Hi, is there any way to have
required
parameters in
KotlinDsl
that are validated at compilation time?
i
1. You can use constructors & functions with named parameters. 2. You can create a compiler plugin.
g
compile plugin is overkill for dsl imo
param for block is way to go:
Copy code
someDlsBlock(requiredParam) {
 // do something
}