Freitag, 22. Mai 2015

Smalltalkify Groovy

By adding some Mixins to a groovy script, it is possible to use some smalltalk-like expressions like

ifTrue: [ do something ] ifFalse: [do something else]

Or do some smalltalk-like exception handling like

[ aBlock ] on: #Error do: [ something ]

In groovy this would look like:

Find the full source here: gist on github