2 ms·
I love Groovy as a language but I have always been a bit divided on the DSL usage. All the DSLs look cool on the surface, but they are all based on syntactic t
by zmmmmm 8y ago
I love Groovy as a language but I have always been a bit divided on the DSL usage.
All the DSLs look cool on the surface, but they are all based on syntactic tricks that have subtle and unintuitive failure modes. When you mistype something in one of these DSLs, the error that comes out of the Groovy parser will make almost no sense to a naive user, and it is not easy to fix that and make it friendlier. It can lead to a really hostile user experience which doesn't end well. I think this is one of the reasons there is quite an antipathy towards Gradle amongst many people, because it is essentially a Groovy DSL and even among programmers this experience where there is no real intuition or understanding of how the language is getting interpreted is very frustrating.