Flash3388 / FlashLib

A robotics development framework
BSD 3-Clause "New" or "Revised" License
10 stars 0 forks source link

Suggestion: VisionOption Stronger Typing #81

Open tomtzook opened 2 years ago

tomtzook commented 2 years ago

So far VisionOption is defined with a type. However this has limitations in some situation, especially when having to serialize the information.

One option is to use some generic serialization option. Or to require the types to answer some requirement (implement some interface) to allow servers to convert that complex type into a primitive one and backwards.

tomtzook commented 2 years ago

Can use a sort of Type class which describes the data contained in it to be used by different serialization techniques, e.g. NetworkTables.