4 ms·
I really liked this up until the inheritance bit. Child classes have to be nested classes of the parent doesn't sit right with me. Also, wouldn't it be better
by Dru89 13y ago
I really liked this up until the inheritance bit.
Child classes have to be nested classes of the parent doesn't sit right with me. Also, wouldn't it be better if these classes inherited object in some way?
For the record, I liked everything else that it mentioned. Just the inheritance bit was something I didn't like.
- lihaoyi 13y ago- The classes do inherit from object, iirc - We know the nesting is controversial; whether it will remain in its current form has yet to be seen. I think there is some merit in this way of doing it, we know others disagree
- Dru89 13y agoAh, okay. Honestly, if I have classes that really do need to inherit from each other, I probably won't be using @case to do it anyways. I see this being extremely useful for the many structures that I need in my application (that may require a few convenience methods) more than anything.