When parsing a Field DSL expression, sometimes warnings can be generated. Currently, they're dumped straight to the terminal (I assume stderr) with @warn.
A better way would be for the Fields.DslState struct to have some way of logging warnings, so the user can handle them however they want. Most likely what we want is to add a callback function to DslState, which defaults to using @warn.
When parsing a Field DSL expression, sometimes warnings can be generated. Currently, they're dumped straight to the terminal (I assume stderr) with
@warn
.A better way would be for the
Fields.DslState
struct to have some way of logging warnings, so the user can handle them however they want. Most likely what we want is to add a callback function toDslState
, which defaults to using@warn
.