Join Slack
Powered by
How can I make the IDE to create this lambda for m...
# getting-started
u
ursus
03/14/2021, 8:02 PM
How can I make the IDE to create this lambda for me? I hate myself writing that manually
j
jbnizet
03/14/2021, 8:07 PM
If only Kotlin had classes so that you could group all these arguments together and end up with a single argument for your lambda instead of 15 🙂
u
ursus
03/14/2021, 8:14 PM
Why allocate 2000 objects if It can be 1000+1 lambda?
v
Vampire
03/14/2021, 8:17 PM
Ctrl+Shift+Space iirc
j
jbnizet
03/14/2021, 8:21 PM
Because readability and maintainability are, in 99% of the cases, more important than avoiding to instantiate short-lived objects.
âž• 6
u
ursus
03/14/2021, 8:34 PM
@Vampire
omg thank you! why is that not in autosuggestions
2
Views
Open in Slack
Previous
Next