Paulien van Alst
05/31/2021, 1:40 PMUriTemplate
was proposing an extension function on String
called trimSlashes
. What is the reason to declare an extension function on the class String? This extension function will be accessible anywhere in your code base for any String you want, however it is very clear that it should only be used for `String`s representing URI`s .
I was curious behind the reason on declaring it on String
and not UriTemplate
for instance.s4nchez
05/31/2021, 1:42 PMUriTemplate
.Paulien van Alst
05/31/2021, 1:42 PMs4nchez
05/31/2021, 1:43 PMdave
05/31/2021, 1:51 PM