scalameta Questions
1
Solved
In scala language, implicit resolution is often done in compile-time and sometimes throws obfuscating error information, one famous example of such error is when shapeless Generic throws error info...
Malebranche asked 15/12, 2019 at 21:43
1
Solved
How can I have the scala compiler automatically generate the case object?
// Pizza class
class Pizza (val crust_type: String)
// companion object
object Pizza {
val crustType = "crust_type"
}
...
Judithjuditha asked 26/6, 2018 at 17:16
1
Solved
Up until recently it was my understanding that two Scala statements below were interchangeable.
expr.op(arg1, arg2,...)
expr op (arg1, arg2,...)
But I've playing around with scala meta, looked a...
1
I just updated to scala meta 2.0.0-M1 and with the latest scala 2.12.3 and now macros no longer compile. The only change i made was to change the meta version from 1.8.0 to 2.0.0-M1.
ERROR: new-st...
Uredium asked 2/8, 2017 at 20:8
3
Solved
I am writing a Scala plugin for an editor I use that would highlight all unused code paths (could be unused defs, vals, classes and implicits), and give the user an option to yank them out of the ....
Scincoid asked 9/3, 2016 at 22:12
1
Solved
I would like to write an annotation macro that adds an extends <sometype> to traits where <sometype> can be specified at compile time.
How can a compile time parameter be passed to a m...
Defense asked 23/3, 2017 at 7:28
1
Solved
I want to generate aliases of methods using annotation macros in Scala 2.11+. I am not even sure that is even possible. If yes, how?
Example - Given this below, I want the annotation macros to exp...
Cinnamon asked 22/10, 2015 at 11:2
1
© 2022 - 2024 — McMap. All rights reserved.