Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlintype-safe builders DSLsSingle-choice MCQ

What is the purpose of annotating DSL marker classes with `@DslMarker`, as shown here?

@DslMarker annotation class HtmlDsl @HtmlDsl class Table { fun tr(init: Tr.() -> Unit) {} } @HtmlDsl class Tr { fun td(init: Td.() -> Unit) {} } @HtmlDsl class Td