Skip to content

retronym/variant-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

variant-java

A proof of concept Scala compiler plugin that makes functional interfaces in the Java standard library more pleasant to work with from Scala by treating them as though they had used declaration site variance.

Compiler Plugin source

As seen in the demo:

"abc".chars.boxed.map(x => x.toString).collect(Collectors.toList())

now typechecks without the need to explicitly provide the type argument to map.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages