[root]/groovy/groovy-core/src/test/groovy/txn
reformat test code
8 lines of code changed in:
Missing def, required by Jochen's changes if we enable the JSR scope checks
1 lines of code changed in:
updated the test cases to use JSR parser syntax
0 lines of code changed in:
Major refactor of the use of print() and println().
We've now added 'global' methods to handle printing out objects in a simple way (common in things like Python and Ruby). This avoids the long winded System.out.println().
So we can now just do
println( "hello world!" )
The nice thing about this is, the owner class in which you execute this operation could overload print() and println() to do something cunning, like redirecting output to a file or whatnot.
So the previously added methods to print an object have been removed. You can no longer do
"hello".println()
3 lines of code changed in:
Added an example of an extensible language construct
81 lines of code changed in: