Hacker News new | ask | show | jobs
by cezarywojcik 3996 days ago
http://faq.sealedabstract.com/structs_or_classes/

This is a better explanation, I think. The structs for values and classes for references idea is a bit shortsighted and doesn't really cover all use cases.

2 comments

I believe this article today is actually a response of sorts to that one, judging by mikeash's comments from when it was posted here 2 weeks ago:

https://news.ycombinator.com/item?id=9830646

Better for whom? People that don't understand what a value or a reference is and need image macros to explain everything?