Which one would you prefer: ``` foo<Int, String...
# announcements
r
Which one would you prefer:
Copy code
foo<Int, String>(1, 2) { "result: $it" }
foo(1, 2)<String>{ "result: $it" }
The first one has less surprises but is more verbose than the second. Thoughts?
k
What does it do?
r
mapping to an unknown type R (String in the above example)
d
I like the first one a little bit more. The type parameter “feels” like it’s in a weird place in the second case.
h
First
t
1️⃣
Also #C1H43FDRB and #C4GKV43N2 are some good places for questions like this 🙂