Daf.Copies.DataTypes
+
+ —
+Type
+
+Specify the data type to use for overriding properties types in a
+Daf
+
data set. This is a dictionary with an
+
+DataKey
+
+ specifying for which property we specify a value to, and the data type to use.
+
Due to Julia's type system limitations, there's just no way for the system to enforce the type of the pairs when initializing this dictionary. That is, what we'd +like + to say is: +
+
+DataTypes = AbstractDict{DataKey, Type{T}} where {T <: StorageScalarBase}
+
+
+But what we are +forced + to say is: +
+
+DataTypes = AbstractDict
+
+
+That's
+not
+ a mistake. Even
+DataTypes = AbstractDict{Key, T <: StorageScalarBase} where {Key, T <: StorageScalarBase}
+
fails to work, as do all the (many) possibilities for expressing "this is a dictionary where the key or the value can be one of several things" Sigh. Glory to anyone who figures out an incantation that would force the system to perform
+any
+ meaningful type inference here.
+