https://kotlinlang.org logo
#ktor
Title
# ktor
k

Kevin Schmeichel

04/29/2019, 6:55 PM
I'm a bit confused by
Locations
- why isn't this just built into
Routing
?
r

Robert Menke

04/29/2019, 7:10 PM
I think it’s likely because ktor is big on being unopinionated.
k

Kevin Schmeichel

04/29/2019, 7:36 PM
It seems like a lot of routing functionality is duplicated in Locations - just to allow converting parameters to data classes?
b

bdawg.io

04/29/2019, 9:15 PM
to allow converting parameters into data classes in a very opinionated way, which is why it’s not part of the basic routing
k

Kevin Schmeichel

04/29/2019, 9:32 PM
ok, I guess I get that, but seems like maybe this functionality belongs in the DataConversion service? and then it could be used with basic routing...
it's nice convenience, but I also feel like it's probably safer to stick with the official Routing.