|
|
|
|
|
by pjmlp
2330 days ago
|
|
Neither of those represent the same semantics of: inline class { ... ]
Which is guaranteed to be always stack-allocated or stored in registers, again you cannot retrofit semantics, specially when passing those classes to binary libraries. |
|
There is also precedence for this, Scala 2.12 changed the encoding of lambdas from anonymous classes to Java 8's invokedynamic.