groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yaro <y...@mail.ru>
Subject Re: Bypassing local variables in a closure
Date Sat, 18 Jul 2015 08:37:53 GMT
Sure, but in this case it is exactly the purpose, because I want to validate
declared variables in a Grails constraints style:
 
def user = ....
def profile = user.profile
{
  user      nullable: true, authenticated: true
  profile   exists: true
  ...
}           



--
View this message in context: http://groovy.329449.n5.nabble.com/Bypassing-local-variables-in-a-closure-tp5726326p5726348.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Mime
View raw message