vitalio vitalio - 1 year ago 103
Groovy Question

groovy quoted function identifiers

Groovy allows a quoted function identifier such as

def "my cool method"()

but I can't find this in the specification. Is it a groovy feature or maybe some lib relies on quotes being used in identifiers? Or is it an omission in the official doc?

Answer Source

It is an integral part of Groovy to be able to do this. If it is missing in the documentation, then it is a documentation bug at most. Basically the same as written at is also valid for function names.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download