Is there a reason why `ApplicationConfigValue` onl...
# ktor
f
Is there a reason why
ApplicationConfigValue
only has the
getString
function and not the
getInt
,
getLong
, etc from hocon's
Config
class?
d
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
ok
would you accept a PR that adds those functions?
d
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
👍 1