3 ms·
I've had only one project in Scala and in general I really liked the language. My biggest reservation about Scala though is what I consider the over-DSLy-ness o
by pivo 14y ago
I've had only one project in Scala and in general I really liked the language. My biggest reservation about Scala though is what I consider the over-DSLy-ness of some of the Scala libraries (3rd party libraries).
In my project different source files using different libraries could almost look like different languages due to the DSLs of the libraries those source files used. Maybe it's just my lack of experience with Scala, but I dislied this because I thought it reduced readability.
Even worse is when two or more DSLs in use in the same source file conflict, for example, with their implicits. Then you may be stuck with different source files using the same library but with different syntax, one with the DSL syntax (where there were no conflicts) and one without.
I suppose this is something you get used to with Scala, but I wonder if you've run into this and if so, what your reaction to it is?
- sbilstein 14y agoLuckily it seems like this is becoming a less common practice in library development in Scala. As the Scala community matures, people are starting to shy away from abusing Scala's DSL features.