News for hackers. Stuff that matters.
Re:Data-oriented design or why you might shoot yourself in t... by meheleventyone on Wednesday June 30, 2021 @02:40PM (#27692041)
Right as I said it’s structural typing. It’s implicit that the traits are grouped together to describe something. And individual traits could be grouped together with completely different ones to describe something else. That you choose not to name it doesn’t change that the trait collection applies to fluffy, white Cats whether you like that or not. I can even choose to call it one thing and you can choose to call it something else and the types will remain interchangeable. You can even leave your type anonymous and it will still be interchangeable.

There are no comments on this comment yet.