Skip to content

Releases: dwickern/scala-nameof

v4.0.0

19 Dec 18:16
Compare
Choose a tag to compare

Adds Scala 3 support

v3.0.0

07 Feb 18:00
Compare
Choose a tag to compare
  1. Adds support for compile-time constants
println(nameOf(java.lang.Integer.MAX_VALUE))

// compiles to:
println("MAX_VALUE")
  1. APIs now return compile-time constants, which allows them to be used in annotations:
@Resource(name = nameOfType[SomeClass])
class SomeClass

// compiles to:
@Resource(name = "SomeClass")
class SomeClass