scala-nameof
scala-nameof copied to clipboard
Get the name of an variable, function, class member, or type as a string--at compile-time!
My usecase is querying ElasticSearch where nested case classes have been inserted. I'm really not sure about the implementation as I'm not too familiar with macros. Tbh I'm surprised I...
Thanks for your awesome work. I have a problem using nameof without having an instance of the type. We can use the following way to get a field name ```scala...
Demo: ``` import shapeless.syntax.singleton._ import shapeless.record._ it("can get name singleton") { val t1 = NameOf.nameOfType[Seq[Int]] val record = (t1 ->> "r") :: "a" ->> 5 :: HNil val r =...
I've noticed https://github.com/dwickern/scala-nameof/pull/26 in which updating dependencies was done manually. I would suggest setting up [RenovateBot GitHub App](https://github.com/apps/renovate) (or optionally a scheduled GH Action) or [Scala-Steward](https://github.com/scala-steward-org/scala-steward) to get automated PRs...