``` private fun String.endpoint() = File(this).nam...
# codingconventions
s
Copy code
private fun String.endpoint() = File(this).name.split("?")[0]
vs
Copy code
private val String.endpoint
  get() = File(this).name.split("?")[0]
s
lit 🔥
h
But he asked for unwritten wisdom 🧌
😂 3
s
tbh I think there should maybe be some mention of this in the reference section that describes extension values in the first place
1
maybe just like a link or something
(See more about when to use extensions here)
h
👍
l
The docs are open source so, just create a PR :-)
Lol, slack mobile client made me think this thread was 3 hours old, not 13 days 🙈