by Koromix · 10y ago · 0 comments
None of these are required for ease of development. At least the first two often result in precisely the opposite.
HLLs are not required to focus on slow abstractions. For example, homogeneous arrays of tagged unions can replace inheritance most of the time. And they avoid breaking your code in 10 files and 20 classes (though for some reason this metric is seen as a good thing way too often).
And while I don't set much store by inheritance, it set considerably more store by duck-typing and polymorphism.
>None of these are required for ease of development. At least the first two often result in precisely the opposite.
So are you talking about Java-style OO? Because I was talking about Smalltalk OO, which is pretty different.
Required, no, but they're tools, and they come in handy. Certainly make development a lot more comfortable.
And some of the time, they make delvelopment a lot easier.
This is precisely the kind of thing that leads to unmaintainable "magic" code, even though it can still be useful but with extreme moderation. So I don't see the point of making that a core feature of any language.
If you have any example to the contrary, I'd love a link to a good open-source project that uses these things extensively.
As for not seeing the point of making it a feature of your language, how about Lisp? And I'm not just talking macros. Lambdas, late binding, and in Scheme, the ability to rebind anything lead to a lot of cool tricks and capabilities.
And late binding is extrordinarily important.!
Well I guess it's good at making CRUD web sites. Hardly rocket science.