the same algorithm should work for all your data c...
# language-proposals
v
the same algorithm should work for all your data classes. Implement it in one common super class (or interface) and reuse the logic