Using let vs introducing new variable?

Using let vs introducing new variable?

Is there a performance impact if instead of introducing a new variable like so


val ab = a + b println(ab)

I’m using let?


(a + b).let { ab -> println(ab) }

submitted by /u/DeadlyAlive
[link] [comments]