|
|
|
|
|
by jblow
3356 days ago
|
|
Then you get early warning that you need to be paying attention, rather than silently corrupting your data by swapping some coordinates around. No, a real-world case is that I have a giant program that uses my own geometric primitives, and now I want to start heavily using a library. I know they are just fricking 3D points or quaternions or whatever. Yet because of some weird ideology you want to increase the amount of gruntwork I have to do, and make my life much less pleasant. You don't want an 8-dimensional point literal that takes 8 arguments directly, that's never going to be readable. You might want to use a builder. More likely you want to load it from a data file or something on those lines rather than constructing it directly. Where are you even getting these 8-dimensional points from? WHAT ARE YOU TALKING ABOUT In Haskell (or indeed in C) it doesn't necessarily have performance implications; an 8-element structure may have exactly the same runtime representation as those 8 elements being passed distinctly. Wow, okay, this conversation is over. |
|
> Wow, okay, this conversation is over.
I'm confused as to why this was a conversation ender.
An 8 element structure using newtypes in haskell would have the same runtime.
For more info, see:
https://skillsmatter.com/skillscasts/5296-safe-zero-cost-coe...