3 ms·
> You are making my point, I'm very much in favor of primitive or very simple types. More complex types typically have a bad cost to benefit ratio. What is a "
by adwn 10y ago
> You are making my point, I'm very much in favor of primitive or very simple types. More complex types typically have a bad cost to benefit ratio.
What is a "simple type" in your eyes? Primitive types plus aggregates and arrays? What if your data structure is actually complex? Do you just stuff it in a hashmap?
- jstimpfle 10y agoPrimitive types plus basic containers mostly. Anything else is just ad-hoc stuff (like algorithms) that should be properly encapsulated, so its representation in a static type system has less utility.