Can scala dsl be encoded to produce its own specialized compilation errors?

I used several Scala DSL modules and wondered if development could be one, could also serve DSL-specific compilations. The idea is that a domain-specific language will also have domain compilation error messages, helping the domain expert to understand correctly. Is this possible in Scala?

+4
source share
1 answer

One of the things that might be useful is annotation.implicitNotFound . You can configure compiler errors to unresolved implications with this help.

@Dylan, Scala c.abort, c.info c.error, , / .

annotation.compileTimeOnly . , - .

+4

All Articles