You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i wont make files, instead one file for every type with different traits:
Value (default)
this trait would give raw value of an object or str/num/bool conversions
Destructable
trait only for objects and arrays
Iterable
idk how would user add iterator for a custom object, but this trait will be on string and array
FieldAccessable
trait that would give access to read/write a field
some fields could be in read-only mode, object would have possibility to lock it's fields, etc.
rust enums have not possibility to make custom traits, e.g. i would not add array.map to a boolean.
i think of one approach is creating file for every type and writing all functions for that type.
The text was updated successfully, but these errors were encountered: