guenther
10/17/2017, 9:41 AMproperty delegation to map allows default values. In my case, I have a map which contain configuration parameters. If a parameter is contained, use it, else use the default. Some sort of
class MyConfig(params: Map<String, String>) {
val a by params { "defA" }
val b by params { "defB" }
val c by params { "defC" }
}
The current behavior is, that a NoSuchElementException is raised when the value isn't found in there.
What do you think about this?