- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13
 
Closed
Labels
DSLAPI design and its DSLAPI design and its DSLcoreThe core of the library is involvedThe core of the library is involvedenhancementNew feature or requestNew feature or request
Description
https://kotlinlang.org/docs/type-safe-builders.html#scope-control-dslmarker
becomes necessary when writing this kind of code:
labels { // this: Validatable<List<String>>
    hasSizeLowerThanOrEqualTo(3) // OK
    each {
        hasLengthGreaterThanOrEqualTo(1) // OK
        hasSizeGreaterThanOrEqualTo(1) // OK BUT SHOULDN'T BE (applied to the list, not to the string)
    }
}Metadata
Metadata
Assignees
Labels
DSLAPI design and its DSLAPI design and its DSLcoreThe core of the library is involvedThe core of the library is involvedenhancementNew feature or requestNew feature or request
Projects
Status
✅ Done