(no title)
bo0O0od | 3 years ago
https://blog.klipse.tech/databook/2022/06/22/generic-data-st...
The examples also contradict his other principles, i.e. immutability.
bo0O0od | 3 years ago
https://blog.klipse.tech/databook/2022/06/22/generic-data-st...
The examples also contradict his other principles, i.e. immutability.
weavejester|3 years ago
jayd16|3 years ago
zasdffaa|3 years ago
I guess you mean dependent types[1], but if you don't, I'd appreciate an elaboration. If you do mean DTs, how might it look for a hetero collection?
[1] If anybody has any good intros to dependent typing in C#, that'd be much appreciated. A web search throws up some pretty intimidating stuff.
bo0O0od|3 years ago
unknown|3 years ago
[deleted]
jayd16|3 years ago
Even if you don't use that, you could certainly orient your data as "structs of arrays instead" of "arrays of structs" (so to speak). It's fairly common in games.
agrafix|3 years ago
[0] https://en.wikipedia.org/wiki/Structural_type_system