Re:Why you might want to choose Ceylon
by monkeyfacebag on Friday October 30, 2015 @11:14PM
(#10481671)
What's broken about extension methods? I have zero experience Scala and about a week's worth of experience with Kotlin, but so far I'm finding extension methods to be pretty straightforward and useful. What am I missing?
[ Parent
| on HN ]
Re:Why you might want to choose Ceylon
by justthistime_ on Sunday November 01, 2015 @08:34AM
(#10486354)
Extremely poor cost/benefit ratio.
Extremely poor cost/benefit ratio for what purpose? If your main goal is to adopt existing classes and libraries as your own (i.e. without any loss of functionality compared to language-native libraries), then extension methods obviously have an extremely high cost/benefit ratio. You can't analyze a feature in isolation of the language's goals. Features exist to serve a purpose, and are measured by how well they serve it.
To give an analogy, a shoulder-fired missile might have a terrible cost/benefit ratio if you're trying to hunt an antelope, but if you're trying to disable a tank, then I'd say it's cost/benefit ratio is pretty good.