pellet icon indicating copy to clipboard operation
pellet copied to clipboard

Think about building route paths with variables using a string

Open lopcode opened this issue 3 years ago • 0 comments

If users have a large number of routes, it can be helpful to see route paths as a single string. For example: /v1/{id:uuid}/hello.

The challenge is that the route path becomes "stringly typed". This tradeoff might be worth it for some people - but investigate if it's possible to produce compilation errors instead of runtime errors for string-based route path building.

See also: https://www.reddit.com/r/Kotlin/comments/ulcama/comment/i7w69g8/?utm_source=share&utm_medium=web2x&context=3

lopcode avatar May 09 '22 10:05 lopcode