I think the original reason was to keep the interface simple, since there is a Hocon implementation, but also an inmemory implementation that uses Strings.
Still you can do something like:
getString("ktor.port")?.toIntOrNull() ?: 8080
f
fred.deschenes
05/18/2018, 1:35 PM
ok
fred.deschenes
05/18/2018, 1:35 PM
would you accept a PR that adds those functions?
d
Deactivated User
05/18/2018, 1:46 PM
I’m not the one accepting PRs, but I think it is ok to make a PR proposing the changes and discuss about it there