4 ms·
> certain things are just not possible because of statically typed languages like Java. Dynamic languages are a lot more flexible It's not the static typing of
by vorg 11y ago
> certain things are just not possible because of statically typed languages like Java. Dynamic languages are a lot more flexible
It's not the static typing of Java that stops certain things not being possible, it's simply that some things like lambdas/closures weren't built in. Dynamic language Beanshell existed for a long time but didn't have closures, so many things were still not possible. Then Groovy came along adding closures to what Beanshell already had, so Gradle could use those closures, and Grails could add a MOP to the closures and use them too. Now that Java 8 has closures and Scala exists, new apps could even use them when they need a language with closures, even though they're not dynamically typed.