Skip to content

Use helper constructors to instantiate type classes  #3870

@joroKr21

Description

@joroKr21

Since we don't support Scala 2.11 anymore this is an option.
See https://www.scala-lang.org/news/2.12.0/

Scala and Java 8 interop is also improved for functional code, as methods that take functions can easily be called in both directions using lambda syntax. The FunctionN classes in Scala’s standard library are now Single Abstract Method (SAM) types, and all SAM types are treated uniformly – from type checking through code generation. No class file is generated for a lambda; invokedynamic is used instead.

"No class file is generated" sounds pretty good to me 🤓

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions