|
|
|
|
|
by GTP
917 days ago
|
|
> Some newer languages don't even deal in classes at all (Rust for example) When you first write a struct, and then you below write an implement block for that struct containing functions that can only be applied to that struct, it really looks like a class to me, it just has a syntax that differs from what we're used to in other languages. Why wouldn't you call that a class? |
|
I would not name it a class, because I don't want people to fall back into thinking: "Ah I know! Inheritance!".