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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.