Thanks. What would be the idomatic way of defining an unique object that
1. can be dispatched on and
2. is in the namespace of a module?
Use case: I have functions with the signature
repack(schema, object, outputtype)
which does something like convert, but behavior can depend on
schema. For the latter, currently I am using Val{:Symbol}, which
satisfies (1) but not (2). Empty types
immutable Schema1 end
can do 1&2, but that seems like an abuse of types and leads to a
proliferation of types (I have 6-7 schemas in my module). Parametric
empty types also work and solve the namespace clutter problem. Are there
better alternatives?
Best,
Tamas