Skip to content

Commit e76a27e

Browse files
committed
Docs: mention future work with specialization
1 parent ae15dd5 commit e76a27e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,19 @@ class Test {
2828
```
2929
% (export JAVA_HOME=`java_home 1.8`; export PATH=$JAVA_HOME/bin:$PATH; sbt 'test:runMain scala.runtime.test.Test')
3030
```
31+
32+
### Future work
33+
34+
- Augment the code generator to also generate specialized variants of the functional interface and
35+
modify scalac to emit lambdas as calls to the lambda MetaFactory against them.
36+
37+
```java
38+
package scala.runtime;
39+
40+
@FunctionalInterface
41+
public interface F1$mcII$sp extends F1 {
42+
abstract int apply$mcII$sp(int v1);
43+
44+
default Object apply(Object s) { return (Integer) apply$mcII$sp((Integer) s); }
45+
}
46+
```

0 commit comments

Comments
 (0)