Neo
Neo
There is some discussion this issue that may help whoever picks this up in the now closed-as-duplicate ticket: https://github.com/scala/scala3/issues/23314
@som-snytt 😃 I didn't really mean it as a slight for the Kotlyn compiler. I just meant, it's a newer language so you wouldn't expect the compiler to be that...
@som-snytt What about `AnyVal`? Is it also ignored by Scala 3?
@sjrd I'll take your word for it. But can you please explain what this call is doing (bytecode from f1)? ``` INVOKEVIRTUAL scala/Predef$.ArrowAssoc (Ljava/lang/Object;)Ljava/lang/Object; ```
@Gedochao Well, there is the boxing of the two integers, the fact that we end up using the non-specialized version of the tuple and the fact that we produce a...
@Gedochao But if we use the hypothetical future Scala 3 version of the `->` operator as in below: ```scala object PairProblem { extension [A](a: A) inline def ->[B](b: B): (A,...
@odersky @sjrd @noti0na1 With openjdk-23.0.1. Comparing the two functions below: ```scala object JitTest: def f2(x0: Int, x1: Int, x2: Int, x3: Int): Int = val (y0, y1, y2, y3) =...