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

Rescribet

01/11/2022, 4:11 PM
Minor nuisance still present in ktor 2:
Url
vs
URLBuilder
😕
3
Though I certainly get the major nuisance it’ll be to refactor this in large code bases 😅
m

Matteo Mirk

01/11/2022, 5:03 PM
Do the two classes coexist?
r

Rescribet

01/12/2022, 12:04 AM
@Matteo Mirk Yes,
URLBuilder
produces
Url
objects
m

Matteo Mirk

01/12/2022, 11:03 AM
I see, so you would like to have just one class to build and represent URLs?
The builder could be an usual companion object inside
Url
probably…
b

Ben Woodworth

01/12/2022, 10:22 PM
I think he means the casing, URL vs Url. (At least I think that's a nuisance. Kotlin's coding conventions suggests UrlBuilder casing I'm pretty sure)
m

Matteo Mirk

01/13/2022, 9:06 AM
Oh I see, thanks
r

Rescribet

01/15/2022, 6:20 PM
Oh, yeah I meant the casing inconsistency
👍 1
9 Views