Re: Java 8 Date/Time API Extension Methods

2017-06-08 Thread Tankerbay
Is there still a legacy issue in that many ORMs (including the version of Grails I'm using) tend to use java.sql.Date which has the benefit of extending java.util.Date? Is there Hibernate support for java.time yet? On Thu, Jun 8, 2017 at 8:07 PM, Joe Wolf wrote: > +1 for me. I think it's a good

Re: [VOTE] new operator ?=

2016-11-28 Thread Tankerbay
Default assignment? On Mon, Nov 28, 2016 at 4:30 PM, Jeff Lowery wrote: > Elsignment? > > — Jeff > > > > On Nov 23, 2016, at 4:30 PM, Daniel Sun wrote: > > I like the nickname "Elvis assignment" for ?= > > Cheers, > Daniel.Sun > > > > 在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" email

Re: What am I missing with this Elvis operator expression?

2016-04-11 Thread Tankerbay
an false. I guess that makes > sense. The cases that surprise me the most are these: > > foo = '' // empty string > foo = foo ?: 'goodbye' // foo == 'goodbye' > > and > > foo = ' ' // single space > foo = foo ?: 'goodbye'

Re: What am I missing with this Elvis operator expression?

2016-04-11 Thread Tankerbay
Well, you seem to know what's happening. sleepFor = sleepFor > 0 ?: 10 is equivalent to: sleepFor = (sleepFor > 0 ) ?: 10 So the entire expression (sleepFor > 0) is evaluated and, if found to be true, returned as the result of the elvis expression. Elvis operator like this: Z = X ?: Default is eq