https://kotlinlang.org logo
#announcements
Title
# announcements
k

keturn

11/12/2017, 7:13 AM
just found out about
@DslMarker
. world turned upside down, not sure what to think. will sleep on it.
a

ank

11/12/2017, 7:38 AM
why? what's so special about it?
h

holgerbrandl

11/12/2017, 9:57 AM
same here, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-dsl-marker/index.html could/should give an example. Is it baked into the compiler or just an annotation?
k

karelpeeters

11/12/2017, 10:36 AM
The compiler definitely uses it, there's an elaborate example here: https://kotlinlang.org/docs/reference/type-safe-builders.html
h

holgerbrandl

11/12/2017, 10:37 AM
Thanks for the pointer
2 Views