I was thinking about something like this too, `inl...
# language-proposals
k
I was thinking about something like this too,
inline
classes. They'd always be compiled down to a parameter list that basically unwraps their values. Might write up a proposal for it when I find some time.
🤔 1
b
What would be the advantage?
k
Performace, mostly. For example, physics engines need fast
Point
classes, and instatiating a bunch of them is too slow. This sometimes leads to people recycling instances with a kind of custom memory management, and the class has to be mutable. This would replace the class with two `Double`s, so there's no overhead.
1