Home »
Code Examples »
Groovy Code Examples
Groovy - Optional semicolons Code Example
The code for Optional semicolons
// In Groovy semicolons at the end of the line can be omitted,
// if the line contains only a single statement.
// This means that:
assert true;
// can be more idiomatically written as:
assert true
Code by IncludeHelp,
on December 28, 2022 21:44