You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by Daniel Sun <re...@hotmail.com> on 2016/11/23 15:59:04 UTC

[VOTE] new operator ?=

Hi all,

     If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
'foo') were to be added to Groovy programming language, do you like it?
(Yes: +1; No: -1; Not bad: 0)

Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Re: [VOTE] new operator ?=

Posted by Andres Almiray <aa...@gmail.com>.
+1

-------------------------------------------
Java Champion; Groovy Enthusiast
http://jroller.com/aalmiray
http://www.linkedin.com/in/aalmiray
--
What goes up, must come down. Ask any system administrator.
There are 10 types of people in the world: Those who understand binary, and
those who don't.
To understand recursion, we must first understand recursion.

On Wed, Nov 23, 2016 at 4:59 PM, Daniel Sun <re...@hotmail.com> wrote:

> Hi all,
>
>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.
>

Re: [VOTE] new operator ?=

Posted by Graeme Rocher <gr...@gmail.com>.
+1

On Thu, Nov 24, 2016 at 5:29 PM, Henrik Martin <he...@netgate.net> wrote:
> +1.
>
> -H
>
>
> On 11/23/16 7:59 AM, Daniel Sun wrote:
>>
>> Hi all,
>>
>>       If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>> 'foo') were to be added to Groovy programming language, do you like it?
>> (Yes: +1; No: -1; Not bad: 0)
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context:
>> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>> Sent from the Groovy Users mailing list archive at Nabble.com.
>
>



-- 
Graeme Rocher

Re: [VOTE] new operator ?=

Posted by Henrik Martin <he...@netgate.net>.
+1.

-H

On 11/23/16 7:59 AM, Daniel Sun wrote:
> Hi all,
>
>       If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.


Re: [VOTE] new operator ?=

Posted by Jacopo Cappellato <ja...@gmail.com>.
+1

Jacopo

On Wed, Nov 23, 2016 at 4:59 PM, Daniel Sun <re...@hotmail.com> wrote:

> Hi all,
>
>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.
>

Re: [VOTE] new operator ?=

Posted by Russel Winder <ru...@winder.org.uk>.
On Wed, 2016-11-23 at 19:47 +0100, Andres Almiray wrote:
> Long live pompaduor walrus ...
> 
> What would be an appropriate nickname for ?=, I wonder.
> 

Elvis has left the building.

;-)

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Re: [VOTE] new operator ?=

Posted by Jochen Theodorou <bl...@gmx.org>.
On 23.11.2016 19:47, Andres Almiray wrote:
> Long live pompaduor walrus ...
>
> What would be an appropriate nickname for ?=, I wonder.

Elvis, the fat years?

bye Jochen



Re: [VOTE] new operator ?=

Posted by Leo Bartoloni <ba...@gmail.com>.
+1

Il 24 nov 2016 1:30 AM, "Daniel Sun" <re...@hotmail.com> ha scritto:

> I like the nickname "Elvis assignment" for ?=
>
> Cheers,
> Daniel.Sun
>
>
>
> 在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" <ml-node+[hidden
> email] <http:///user/SendEmail.jtp?type=node&node=5736970&i=0>>写道:<br
> type="att
> Sounds about right.
>
> On Wed, Nov 23, 2016 at 9:07 PM, Shil Sinha <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5736959&i=0>> wrote:
>
>> Elvis assignment?
>>
>> On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=5736959&i=1>> wrote:
>>
>>> Long live pompaduor walrus ...
>>>
>>> What would be an appropriate nickname for ?=, I wonder.
>>>
>>> -------------------------------------------
>>> Java Champion; Groovy Enthusiast
>>> http://jroller.com/aalmiray
>>> http://www.linkedin.com/in/aalmiray
>>> --
>>> What goes up, must come down. Ask any system administrator.
>>> There are 10 types of people in the world: Those who understand binary,
>>> and those who don't.
>>> To understand recursion, we must first understand recursion.
>>>
>>> On Wed, Nov 23, 2016 at 7:35 PM, Paul King <[hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=5736959&i=2>> wrote:
>>>
>>> For all our other operators of the form:
>>>
>>> a X= b
>>>
>>> it is shorthand for:
>>>
>>> a = a X b
>>>
>>> So, to follow that convention the operator is:
>>>
>>> a ?:= b
>>>
>>> which as per previous discussions is a bit cumbersome, so I am +1 for
>>> the shortened form so long as we document appropriately.
>>>
>>> Paul.
>>>
>>>
>>> On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <[hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=5736959&i=3>> wrote:
>>> > +1
>>> >
>>> > Gerald R. Wiltse
>>> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=5736959&i=4>
>>> >
>>> >
>>> > On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
>>> > <[hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=5736959&i=5>> wrote:
>>> >>
>>> >> At first I was going to vote 0, because I feel like a = a ?: b is
>>> clear
>>> >> (and I compare it to a = a || b from JS). However, looking at the dev
>>> list,
>>> >> I definitely see a nice case for it:
>>> >>
>>> >> person.name.last = person.name.last ?: "unknown"
>>> >>
>>> >> When you have a non-trivial assignment expression, I see the benefit:
>>> >>
>>> >> person.name.last ?= "unknown"
>>> >>
>>> >> However, I feel like it is not intuitive or clear. But, I don't think
>>> the
>>> >> operator hurts, and it's certainly not any less intuitive than <=> for
>>> >> example or even ?: when seen for the very first time. It's an easy
>>> look up
>>> >> in Groovy docs, and if you don't know it and don't use it, it's not a
>>> huge
>>> >> loss. So it doesn't hurt to add it, and while not instantly readable,
>>> it's a
>>> >> trivial docs lookup when someone is reading the code.
>>> >>
>>> >> So, I vote +1. But, honestly, I don't see myself using it very often
>>> as
>>> >> I'd normally use Elvis at time of initial assignment. I wouldn't put
>>> it very
>>> >> high on a prioritized backlog of things to improve for Groovy.
>>> >>
>>> >> Jason
>>> >>
>>> >> -----Original Message-----
>>> >> From: Daniel Sun [mailto:[hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=5736959&i=6>]
>>> >> Sent: Wednesday, November 23, 2016 10:59 AM
>>> >> To: [hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=5736959&i=7>
>>> >> Subject: [VOTE] new operator ?=
>>> >>
>>> >> Hi all,
>>> >>
>>> >>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a =
>>> a ?:
>>> >> 'foo') were to be added to Groovy programming language, do you like
>>> it?
>>> >> (Yes: +1; No: -1; Not bad: 0)
>>> >>
>>> >> Cheers,
>>> >> Daniel.Sun
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>>> >> Sent from the Groovy Users mailing list archive at Nabble.com.
>>> >>
>>> >> This email message and any attachments are for the sole use of the
>>> >> intended recipient(s). Any unauthorized review, use, disclosure or
>>> >> distribution is prohibited. If you are not the intended recipient,
>>> please
>>> >> contact the sender by reply email and destroy all copies of the
>>> original
>>> >> message and any attachments.
>>> >
>>> >
>>>
>>>
>>>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge <http://twitter.com/glaforge> / Google+
> <https://plus.google.com/u/0/114130972232398734985/posts>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://groovy.329449.n5.nabble.com/VOTE-new-operator-
> tp5736931p5736959.html
> To unsubscribe from [VOTE] new operator ?=, click here.
> NAML
> <http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> ------------------------------
> View this message in context: Re: [VOTE] new operator ?=
> <http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736970.html>
> Sent from the Groovy Users mailing list archive
> <http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html> at
> Nabble.com.
>

Re: [VOTE] new operator ?=

Posted by Daniel Sun <re...@hotmail.com>.
Interesting, but hard to understand somehow at the first time hearing the name ;)

Cheers,
Daniel.Sun



在 "jeff.l [via Groovy]" <ml...@n5.nabble.com>,2016年11月29日 上午8:30写道:

Elsignment?

— Jeff



On Nov 23, 2016, at 4:30 PM, Daniel Sun <[hidden email]> wrote:

I like the nickname "Elvis assignment" for ?=

Cheers,
Daniel.Sun



在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" <ml-node+<a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736970&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]>写道:<br type="att
Sounds about right.

On Wed, Nov 23, 2016 at 9:07 PM, Shil Sinha <<a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
Elvis assignment?

On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <<a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
Long live pompaduor walrus ...

What would be an appropriate nickname for ?=, I wonder.

-------------------------------------------
Java Champion; Groovy Enthusiast
http://jroller.com/aalmiray
http://www.linkedin.com/in/aalmiray
--
What goes up, must come down. Ask any system administrator.
There are 10 types of people in the world: Those who understand binary, and those who don't.
To understand recursion, we must first understand recursion.

On Wed, Nov 23, 2016 at 7:35 PM, Paul King <<a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=2" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
For all our other operators of the form:

a X= b

it is shorthand for:

a = a X b

So, to follow that convention the operator is:

a ?:= b

which as per previous discussions is a bit cumbersome, so I am +1 for
the shortened form so long as we document appropriately.

Paul.


On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <<a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=3" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
> +1
>
> Gerald R. Wiltse
> <a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=4" target="_top" rel="nofollow" link="external" class=""> [hidden email]
>
>
> On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
> <<a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=5" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
>>
>> At first I was going to vote 0, because I feel like a = a ?: b is clear
>> (and I compare it to a = a || b from JS). However, looking at the dev list,
>> I definitely see a nice case for it:
>>
>> person.name.last = person.name.last ?: "unknown"
>>
>> When you have a non-trivial assignment expression, I see the benefit:
>>
>> person.name.last ?= "unknown"
>>
>> However, I feel like it is not intuitive or clear. But, I don't think the
>> operator hurts, and it's certainly not any less intuitive than <=> for
>> example or even ?: when seen for the very first time. It's an easy look up
>> in Groovy docs, and if you don't know it and don't use it, it's not a huge
>> loss. So it doesn't hurt to add it, and while not instantly readable, it's a
>> trivial docs lookup when someone is reading the code.
>>
>> So, I vote +1. But, honestly, I don't see myself using it very often as
>> I'd normally use Elvis at time of initial assignment. I wouldn't put it very
>> high on a prioritized backlog of things to improve for Groovy.
>>
>> Jason
>>
>> -----Original Message-----
>> From: Daniel Sun [mailto:<a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=6" target="_top" rel="nofollow" link="external" class="">[hidden email]]
>> Sent: Wednesday, November 23, 2016 10:59 AM
>> To: <a href="x-msg://14/user/SendEmail.jtp?type=node&amp;node=5736959&amp;i=7" target="_top" rel="nofollow" link="external" class=""> [hidden email]
>> Subject: [VOTE] new operator ?=
>>
>> Hi all,
>>
>>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>> 'foo') were to be added to Groovy programming language, do you like it?
>> (Yes: +1; No: -1; Not bad: 0)
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context:
>> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>> Sent from the Groovy Users mailing list archive at Nabble.com<http://Nabble.com>.
>>
>> This email message and any attachments are for the sole use of the
>> intended recipient(s). Any unauthorized review, use, disclosure or
>> distribution is prohibited. If you are not the intended recipient, please
>> contact the sender by reply email and destroy all copies of the original
>> message and any attachments.
>
>




--
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge<http://twitter.com/glaforge> / Google+<https://plus.google.com/u/0/114130972232398734985/posts>


________________________________
If you reply to this email, your message will be added to the discussion below:
http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736959.html
To unsubscribe from [VOTE] new operator ?=, click here.
NAML<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

________________________________
View this message in context: Re: [VOTE] new operator ?=<http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736970.html>
Sent from the Groovy Users mailing list archive<http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html> at Nabble.com<http://Nabble.com>.



________________________________
If you reply to this email, your message will be added to the discussion below:
http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5737052.html
To unsubscribe from [VOTE] new operator ?=, click here<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5736931&code=cmVhbGJsdWVzdW5AaG90bWFpbC5jb218NTczNjkzMXwxMTQ2MjE4MjI1>.
NAML<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5737053.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Re: [VOTE] new operator ?=

Posted by Emanuel Cordeiro <em...@gmail.com>.
+1

On Tue, Nov 29, 2016 at 12:00 AM, Tankerbay <ta...@gmail.com> wrote:

> Default assignment?
>
>
> On Mon, Nov 28, 2016 at 4:30 PM, Jeff Lowery <je...@mavericklabel.com>
> wrote:
>
>> Elsignment?
>>
>> — Jeff
>>
>>
>>
>> On Nov 23, 2016, at 4:30 PM, Daniel Sun <re...@hotmail.com> wrote:
>>
>> I like the nickname "Elvis assignment" for ?=
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> 在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" <ml-node+[hidden
>> email]>写道:<br type="att
>> Sounds about right.
>>
>> On Wed, Nov 23, 2016 at 9:07 PM, Shil Sinha <[hidden email]> wrote:
>>
>>> Elvis assignment?
>>>
>>> On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <[hidden email]> wrote:
>>>
>>>> Long live pompaduor walrus ...
>>>>
>>>> What would be an appropriate nickname for ?=, I wonder.
>>>>
>>>> -------------------------------------------
>>>> Java Champion; Groovy Enthusiast
>>>> http://jroller.com/aalmiray
>>>> http://www.linkedin.com/in/aalmiray
>>>> --
>>>> What goes up, must come down. Ask any system administrator.
>>>> There are 10 types of people in the world: Those who understand binary,
>>>> and those who don't.
>>>> To understand recursion, we must first understand recursion.
>>>>
>>>> On Wed, Nov 23, 2016 at 7:35 PM, Paul King <[hidden email]> wrote:
>>>>
>>>> For all our other operators of the form:
>>>>
>>>> a X= b
>>>>
>>>> it is shorthand for:
>>>>
>>>> a = a X b
>>>>
>>>> So, to follow that convention the operator is:
>>>>
>>>> a ?:= b
>>>>
>>>> which as per previous discussions is a bit cumbersome, so I am +1 for
>>>> the shortened form so long as we document appropriately.
>>>>
>>>> Paul.
>>>>
>>>>
>>>> On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <[hidden email]> wrote:
>>>> > +1
>>>> >
>>>> > Gerald R. Wiltse
>>>> > [hidden email]
>>>> >
>>>> >
>>>> > On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
>>>> > <[hidden email]> wrote:
>>>> >>
>>>> >> At first I was going to vote 0, because I feel like a = a ?: b is
>>>> clear
>>>> >> (and I compare it to a = a || b from JS). However, looking at the
>>>> dev list,
>>>> >> I definitely see a nice case for it:
>>>> >>
>>>> >> person.name.last = person.name.last ?: "unknown"
>>>> >>
>>>> >> When you have a non-trivial assignment expression, I see the benefit:
>>>> >>
>>>> >> person.name.last ?= "unknown"
>>>> >>
>>>> >> However, I feel like it is not intuitive or clear. But, I don't
>>>> think the
>>>> >> operator hurts, and it's certainly not any less intuitive than <=>
>>>> for
>>>> >> example or even ?: when seen for the very first time. It's an easy
>>>> look up
>>>> >> in Groovy docs, and if you don't know it and don't use it, it's not
>>>> a huge
>>>> >> loss. So it doesn't hurt to add it, and while not instantly
>>>> readable, it's a
>>>> >> trivial docs lookup when someone is reading the code.
>>>> >>
>>>> >> So, I vote +1. But, honestly, I don't see myself using it very often
>>>> as
>>>> >> I'd normally use Elvis at time of initial assignment. I wouldn't put
>>>> it very
>>>> >> high on a prioritized backlog of things to improve for Groovy.
>>>> >>
>>>> >> Jason
>>>> >>
>>>> >> -----Original Message-----
>>>> >> From: Daniel Sun [mailto:[hidden email]]
>>>> >> Sent: Wednesday, November 23, 2016 10:59 AM
>>>> >> To: [hidden email]
>>>> >> Subject: [VOTE] new operator ?=
>>>> >>
>>>> >> Hi all,
>>>> >>
>>>> >>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a =
>>>> a ?:
>>>> >> 'foo') were to be added to Groovy programming language, do you like
>>>> it?
>>>> >> (Yes: +1; No: -1; Not bad: 0)
>>>> >>
>>>> >> Cheers,
>>>> >> Daniel.Sun
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> View this message in context:
>>>> >> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>>>> >> Sent from the Groovy Users mailing list archive at Nabble.com.
>>>> >>
>>>> >> This email message and any attachments are for the sole use of the
>>>> >> intended recipient(s). Any unauthorized review, use, disclosure or
>>>> >> distribution is prohibited. If you are not the intended recipient,
>>>> please
>>>> >> contact the sender by reply email and destroy all copies of the
>>>> original
>>>> >> message and any attachments.
>>>> >
>>>> >
>>>>
>>>>
>>>>
>>
>>
>> --
>> Guillaume Laforge
>> Apache Groovy committer & PMC Vice-President
>> Developer Advocate @ Google Cloud Platform
>>
>> Blog: http://glaforge.appspot.com/
>> Social: @glaforge <http://twitter.com/glaforge> / Google+
>> <https://plus.google.com/u/0/114130972232398734985/posts>
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp57369
>> 31p5736959.html
>> To unsubscribe from [VOTE] new operator ?=, click here.
>> NAML
>> <http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>> ------------------------------
>> View this message in context: Re: [VOTE] new operator ?=
>> <http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736970.html>
>> Sent from the Groovy Users mailing list archive
>> <http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html> at
>> Nabble.com.
>>
>>
>>
>

Re: [VOTE] new operator ?=

Posted by Tankerbay <ta...@gmail.com>.
Default assignment?


On Mon, Nov 28, 2016 at 4:30 PM, Jeff Lowery <je...@mavericklabel.com>
wrote:

> Elsignment?
>
> — Jeff
>
>
>
> On Nov 23, 2016, at 4:30 PM, Daniel Sun <re...@hotmail.com> wrote:
>
> I like the nickname "Elvis assignment" for ?=
>
> Cheers,
> Daniel.Sun
>
>
>
> 在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" <ml-node+[hidden
> email]>写道:<br type="att
> Sounds about right.
>
> On Wed, Nov 23, 2016 at 9:07 PM, Shil Sinha <[hidden email]> wrote:
>
>> Elvis assignment?
>>
>> On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <[hidden email]> wrote:
>>
>>> Long live pompaduor walrus ...
>>>
>>> What would be an appropriate nickname for ?=, I wonder.
>>>
>>> -------------------------------------------
>>> Java Champion; Groovy Enthusiast
>>> http://jroller.com/aalmiray
>>> http://www.linkedin.com/in/aalmiray
>>> --
>>> What goes up, must come down. Ask any system administrator.
>>> There are 10 types of people in the world: Those who understand binary,
>>> and those who don't.
>>> To understand recursion, we must first understand recursion.
>>>
>>> On Wed, Nov 23, 2016 at 7:35 PM, Paul King <[hidden email]> wrote:
>>>
>>> For all our other operators of the form:
>>>
>>> a X= b
>>>
>>> it is shorthand for:
>>>
>>> a = a X b
>>>
>>> So, to follow that convention the operator is:
>>>
>>> a ?:= b
>>>
>>> which as per previous discussions is a bit cumbersome, so I am +1 for
>>> the shortened form so long as we document appropriately.
>>>
>>> Paul.
>>>
>>>
>>> On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <[hidden email]> wrote:
>>> > +1
>>> >
>>> > Gerald R. Wiltse
>>> > [hidden email]
>>> >
>>> >
>>> > On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
>>> > <[hidden email]> wrote:
>>> >>
>>> >> At first I was going to vote 0, because I feel like a = a ?: b is
>>> clear
>>> >> (and I compare it to a = a || b from JS). However, looking at the dev
>>> list,
>>> >> I definitely see a nice case for it:
>>> >>
>>> >> person.name.last = person.name.last ?: "unknown"
>>> >>
>>> >> When you have a non-trivial assignment expression, I see the benefit:
>>> >>
>>> >> person.name.last ?= "unknown"
>>> >>
>>> >> However, I feel like it is not intuitive or clear. But, I don't think
>>> the
>>> >> operator hurts, and it's certainly not any less intuitive than <=> for
>>> >> example or even ?: when seen for the very first time. It's an easy
>>> look up
>>> >> in Groovy docs, and if you don't know it and don't use it, it's not a
>>> huge
>>> >> loss. So it doesn't hurt to add it, and while not instantly readable,
>>> it's a
>>> >> trivial docs lookup when someone is reading the code.
>>> >>
>>> >> So, I vote +1. But, honestly, I don't see myself using it very often
>>> as
>>> >> I'd normally use Elvis at time of initial assignment. I wouldn't put
>>> it very
>>> >> high on a prioritized backlog of things to improve for Groovy.
>>> >>
>>> >> Jason
>>> >>
>>> >> -----Original Message-----
>>> >> From: Daniel Sun [mailto:[hidden email]]
>>> >> Sent: Wednesday, November 23, 2016 10:59 AM
>>> >> To: [hidden email]
>>> >> Subject: [VOTE] new operator ?=
>>> >>
>>> >> Hi all,
>>> >>
>>> >>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a =
>>> a ?:
>>> >> 'foo') were to be added to Groovy programming language, do you like
>>> it?
>>> >> (Yes: +1; No: -1; Not bad: 0)
>>> >>
>>> >> Cheers,
>>> >> Daniel.Sun
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>>> >> Sent from the Groovy Users mailing list archive at Nabble.com.
>>> >>
>>> >> This email message and any attachments are for the sole use of the
>>> >> intended recipient(s). Any unauthorized review, use, disclosure or
>>> >> distribution is prohibited. If you are not the intended recipient,
>>> please
>>> >> contact the sender by reply email and destroy all copies of the
>>> original
>>> >> message and any attachments.
>>> >
>>> >
>>>
>>>
>>>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge <http://twitter.com/glaforge> / Google+
> <https://plus.google.com/u/0/114130972232398734985/posts>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://groovy.329449.n5.nabble.com/VOTE-new-operator-
> tp5736931p5736959.html
> To unsubscribe from [VOTE] new operator ?=, click here.
> NAML
> <http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> ------------------------------
> View this message in context: Re: [VOTE] new operator ?=
> <http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736970.html>
> Sent from the Groovy Users mailing list archive
> <http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html> at
> Nabble.com.
>
>
>

Re: [VOTE] new operator ?=

Posted by Jeff Lowery <je...@mavericklabel.com>.
Elsignment?

— Jeff



> On Nov 23, 2016, at 4:30 PM, Daniel Sun <re...@hotmail.com> wrote:
> 
> I like the nickname "Elvis assignment" for ?=
> 
> Cheers,
> Daniel.Sun
> 
> 
> 
> 在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" <ml-node+[hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736970&i=0>>写道:<br type="att
> Sounds about right.
> 
> On Wed, Nov 23, 2016 at 9:07 PM, Shil Sinha <[hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=0>> wrote:
> Elvis assignment?
> 
> On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <[hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=1>> wrote:
> Long live pompaduor walrus ...
> 
> What would be an appropriate nickname for ?=, I wonder.
> 
> -------------------------------------------
> Java Champion; Groovy Enthusiast
> http://jroller.com/aalmiray <http://jroller.com/aalmiray>
> http://www.linkedin.com/in/aalmiray <http://www.linkedin.com/in/aalmiray>
> --
> What goes up, must come down. Ask any system administrator.
> There are 10 types of people in the world: Those who understand binary, and those who don't.
> To understand recursion, we must first understand recursion.
> 
> On Wed, Nov 23, 2016 at 7:35 PM, Paul King <[hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=2>> wrote:
> For all our other operators of the form:
> 
> a X= b
> 
> it is shorthand for:
> 
> a = a X b
> 
> So, to follow that convention the operator is:
> 
> a ?:= b
> 
> which as per previous discussions is a bit cumbersome, so I am +1 for
> the shortened form so long as we document appropriately.
> 
> Paul.
> 
> 
> On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <[hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=3>> wrote:
> > +1
> >
> > Gerald R. Wiltse
> > [hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=4>
> >
> >
> > On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
> > <[hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=5>> wrote:
> >>
> >> At first I was going to vote 0, because I feel like a = a ?: b is clear
> >> (and I compare it to a = a || b from JS). However, looking at the dev list,
> >> I definitely see a nice case for it:
> >>
> >> person.name.last = person.name.last ?: "unknown"
> >>
> >> When you have a non-trivial assignment expression, I see the benefit:
> >>
> >> person.name.last ?= "unknown"
> >>
> >> However, I feel like it is not intuitive or clear. But, I don't think the
> >> operator hurts, and it's certainly not any less intuitive than <=> for
> >> example or even ?: when seen for the very first time. It's an easy look up
> >> in Groovy docs, and if you don't know it and don't use it, it's not a huge
> >> loss. So it doesn't hurt to add it, and while not instantly readable, it's a
> >> trivial docs lookup when someone is reading the code.
> >>
> >> So, I vote +1. But, honestly, I don't see myself using it very often as
> >> I'd normally use Elvis at time of initial assignment. I wouldn't put it very
> >> high on a prioritized backlog of things to improve for Groovy.
> >>
> >> Jason
> >>
> >> -----Original Message-----
> >> From: Daniel Sun [mailto:[hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=6>]
> >> Sent: Wednesday, November 23, 2016 10:59 AM
> >> To: [hidden email] <x-msg://14/user/SendEmail.jtp?type=node&node=5736959&i=7>
> >> Subject: [VOTE] new operator ?=
> >>
> >> Hi all,
> >>
> >>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> >> 'foo') were to be added to Groovy programming language, do you like it?
> >> (Yes: +1; No: -1; Not bad: 0)
> >>
> >> Cheers,
> >> Daniel.Sun
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html <http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html>
> >> Sent from the Groovy Users mailing list archive at Nabble.com.
> >>
> >> This email message and any attachments are for the sole use of the
> >> intended recipient(s). Any unauthorized review, use, disclosure or
> >> distribution is prohibited. If you are not the intended recipient, please
> >> contact the sender by reply email and destroy all copies of the original
> >> message and any attachments.
> >
> >
> 
> 
> 
> 
> -- 
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
> 
> Blog: http://glaforge.appspot.com/ <http://glaforge.appspot.com/>
> Social: @glaforge <http://twitter.com/glaforge> / Google+ <https://plus.google.com/u/0/114130972232398734985/posts>
> 
> If you reply to this email, your message will be added to the discussion below:
> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736959.html <http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736959.html>
> To unsubscribe from [VOTE] new operator ?=, click here <applewebdata://74EE9B77-5B71-459C-9927-CCBCA5601822>.
> NAML <http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> View this message in context: Re: [VOTE] new operator ?= <http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736970.html>
> Sent from the Groovy Users mailing list archive <http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html> at Nabble.com.


Re: [VOTE] new operator ?=

Posted by Daniel Sun <re...@hotmail.com>.
I like the nickname "Elvis assignment" for ?=

Cheers,
Daniel.Sun



在 2016年11月24日 04:18,"Guillaume Laforge [via Groovy]" <ml...@n5.nabble.com>写道:<br type="att
Sounds about right.

On Wed, Nov 23, 2016 at 9:07 PM, Shil Sinha <[hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=0>> wrote:
Elvis assignment?

On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <[hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=1>> wrote:
Long live pompaduor walrus ...

What would be an appropriate nickname for ?=, I wonder.

-------------------------------------------
Java Champion; Groovy Enthusiast
http://jroller.com/aalmiray
http://www.linkedin.com/in/aalmiray
--
What goes up, must come down. Ask any system administrator.
There are 10 types of people in the world: Those who understand binary, and those who don't.
To understand recursion, we must first understand recursion.

On Wed, Nov 23, 2016 at 7:35 PM, Paul King <[hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=2>> wrote:
For all our other operators of the form:

a X= b

it is shorthand for:

a = a X b

So, to follow that convention the operator is:

a ?:= b

which as per previous discussions is a bit cumbersome, so I am +1 for
the shortened form so long as we document appropriately.

Paul.


On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <[hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=3>> wrote:
> +1
>
> Gerald R. Wiltse
> [hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=4>
>
>
> On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
> <[hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=5>> wrote:
>>
>> At first I was going to vote 0, because I feel like a = a ?: b is clear
>> (and I compare it to a = a || b from JS). However, looking at the dev list,
>> I definitely see a nice case for it:
>>
>> person.name.last = person.name.last ?: "unknown"
>>
>> When you have a non-trivial assignment expression, I see the benefit:
>>
>> person.name.last ?= "unknown"
>>
>> However, I feel like it is not intuitive or clear. But, I don't think the
>> operator hurts, and it's certainly not any less intuitive than <=> for
>> example or even ?: when seen for the very first time. It's an easy look up
>> in Groovy docs, and if you don't know it and don't use it, it's not a huge
>> loss. So it doesn't hurt to add it, and while not instantly readable, it's a
>> trivial docs lookup when someone is reading the code.
>>
>> So, I vote +1. But, honestly, I don't see myself using it very often as
>> I'd normally use Elvis at time of initial assignment. I wouldn't put it very
>> high on a prioritized backlog of things to improve for Groovy.
>>
>> Jason
>>
>> -----Original Message-----
>> From: Daniel Sun [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=6>]
>> Sent: Wednesday, November 23, 2016 10:59 AM
>> To: [hidden email]</user/SendEmail.jtp?type=node&node=5736959&i=7>
>> Subject: [VOTE] new operator ?=
>>
>> Hi all,
>>
>>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>> 'foo') were to be added to Groovy programming language, do you like it?
>> (Yes: +1; No: -1; Not bad: 0)
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context:
>> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>> Sent from the Groovy Users mailing list archive at Nabble.com.
>>
>> This email message and any attachments are for the sole use of the
>> intended recipient(s). Any unauthorized review, use, disclosure or
>> distribution is prohibited. If you are not the intended recipient, please
>> contact the sender by reply email and destroy all copies of the original
>> message and any attachments.
>
>




--
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge<http://twitter.com/glaforge> / Google+<https://plus.google.com/u/0/114130972232398734985/posts>


________________________________
If you reply to this email, your message will be added to the discussion below:
http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736959.html
To unsubscribe from [VOTE] new operator ?=, click here<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5736931&code=cmVhbGJsdWVzdW5AaG90bWFpbC5jb218NTczNjkzMXwxMTQ2MjE4MjI1>.
NAML<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5736970.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Re: [VOTE] new operator ?=

Posted by Guillaume Laforge <gl...@gmail.com>.
Sounds about right.

On Wed, Nov 23, 2016 at 9:07 PM, Shil Sinha <sh...@gmail.com> wrote:

> Elvis assignment?
>
> On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <aa...@gmail.com> wrote:
>
>> Long live pompaduor walrus ...
>>
>> What would be an appropriate nickname for ?=, I wonder.
>>
>> -------------------------------------------
>> Java Champion; Groovy Enthusiast
>> http://jroller.com/aalmiray
>> http://www.linkedin.com/in/aalmiray
>> --
>> What goes up, must come down. Ask any system administrator.
>> There are 10 types of people in the world: Those who understand binary,
>> and those who don't.
>> To understand recursion, we must first understand recursion.
>>
>> On Wed, Nov 23, 2016 at 7:35 PM, Paul King <pa...@asert.com.au> wrote:
>>
>> For all our other operators of the form:
>>
>> a X= b
>>
>> it is shorthand for:
>>
>> a = a X b
>>
>> So, to follow that convention the operator is:
>>
>> a ?:= b
>>
>> which as per previous discussions is a bit cumbersome, so I am +1 for
>> the shortened form so long as we document appropriately.
>>
>> Paul.
>>
>>
>> On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <je...@gmail.com>
>> wrote:
>> > +1
>> >
>> > Gerald R. Wiltse
>> > jerrywiltse@gmail.com
>> >
>> >
>> > On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
>> > <Ja...@windstream.com> wrote:
>> >>
>> >> At first I was going to vote 0, because I feel like a = a ?: b is clear
>> >> (and I compare it to a = a || b from JS). However, looking at the dev
>> list,
>> >> I definitely see a nice case for it:
>> >>
>> >> person.name.last = person.name.last ?: "unknown"
>> >>
>> >> When you have a non-trivial assignment expression, I see the benefit:
>> >>
>> >> person.name.last ?= "unknown"
>> >>
>> >> However, I feel like it is not intuitive or clear. But, I don't think
>> the
>> >> operator hurts, and it's certainly not any less intuitive than <=> for
>> >> example or even ?: when seen for the very first time. It's an easy
>> look up
>> >> in Groovy docs, and if you don't know it and don't use it, it's not a
>> huge
>> >> loss. So it doesn't hurt to add it, and while not instantly readable,
>> it's a
>> >> trivial docs lookup when someone is reading the code.
>> >>
>> >> So, I vote +1. But, honestly, I don't see myself using it very often as
>> >> I'd normally use Elvis at time of initial assignment. I wouldn't put
>> it very
>> >> high on a prioritized backlog of things to improve for Groovy.
>> >>
>> >> Jason
>> >>
>> >> -----Original Message-----
>> >> From: Daniel Sun [mailto:realbluesun@hotmail.com]
>> >> Sent: Wednesday, November 23, 2016 10:59 AM
>> >> To: users@groovy.incubator.apache.org
>> >> Subject: [VOTE] new operator ?=
>> >>
>> >> Hi all,
>> >>
>> >>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a
>> ?:
>> >> 'foo') were to be added to Groovy programming language, do you like it?
>> >> (Yes: +1; No: -1; Not bad: 0)
>> >>
>> >> Cheers,
>> >> Daniel.Sun
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>> >> Sent from the Groovy Users mailing list archive at Nabble.com.
>> >>
>> >> This email message and any attachments are for the sole use of the
>> >> intended recipient(s). Any unauthorized review, use, disclosure or
>> >> distribution is prohibited. If you are not the intended recipient,
>> please
>> >> contact the sender by reply email and destroy all copies of the
>> original
>> >> message and any attachments.
>> >
>> >
>>
>>
>>


-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Re: [VOTE] new operator ?=

Posted by Shil Sinha <sh...@gmail.com>.
Elvis assignment?

On Wed, Nov 23, 2016 at 1:47 PM Andres Almiray <aa...@gmail.com> wrote:

> Long live pompaduor walrus ...
>
> What would be an appropriate nickname for ?=, I wonder.
>
> -------------------------------------------
> Java Champion; Groovy Enthusiast
> http://jroller.com/aalmiray
> http://www.linkedin.com/in/aalmiray
> --
> What goes up, must come down. Ask any system administrator.
> There are 10 types of people in the world: Those who understand binary,
> and those who don't.
> To understand recursion, we must first understand recursion.
>
> On Wed, Nov 23, 2016 at 7:35 PM, Paul King <pa...@asert.com.au> wrote:
>
> For all our other operators of the form:
>
> a X= b
>
> it is shorthand for:
>
> a = a X b
>
> So, to follow that convention the operator is:
>
> a ?:= b
>
> which as per previous discussions is a bit cumbersome, so I am +1 for
> the shortened form so long as we document appropriately.
>
> Paul.
>
>
> On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <je...@gmail.com>
> wrote:
> > +1
> >
> > Gerald R. Wiltse
> > jerrywiltse@gmail.com
> >
> >
> > On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
> > <Ja...@windstream.com> wrote:
> >>
> >> At first I was going to vote 0, because I feel like a = a ?: b is clear
> >> (and I compare it to a = a || b from JS). However, looking at the dev
> list,
> >> I definitely see a nice case for it:
> >>
> >> person.name.last = person.name.last ?: "unknown"
> >>
> >> When you have a non-trivial assignment expression, I see the benefit:
> >>
> >> person.name.last ?= "unknown"
> >>
> >> However, I feel like it is not intuitive or clear. But, I don't think
> the
> >> operator hurts, and it's certainly not any less intuitive than <=> for
> >> example or even ?: when seen for the very first time. It's an easy look
> up
> >> in Groovy docs, and if you don't know it and don't use it, it's not a
> huge
> >> loss. So it doesn't hurt to add it, and while not instantly readable,
> it's a
> >> trivial docs lookup when someone is reading the code.
> >>
> >> So, I vote +1. But, honestly, I don't see myself using it very often as
> >> I'd normally use Elvis at time of initial assignment. I wouldn't put it
> very
> >> high on a prioritized backlog of things to improve for Groovy.
> >>
> >> Jason
> >>
> >> -----Original Message-----
> >> From: Daniel Sun [mailto:realbluesun@hotmail.com]
> >> Sent: Wednesday, November 23, 2016 10:59 AM
> >> To: users@groovy.incubator.apache.org
> >> Subject: [VOTE] new operator ?=
> >>
> >> Hi all,
> >>
> >>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a
> ?:
> >> 'foo') were to be added to Groovy programming language, do you like it?
> >> (Yes: +1; No: -1; Not bad: 0)
> >>
> >> Cheers,
> >> Daniel.Sun
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
> >> Sent from the Groovy Users mailing list archive at Nabble.com.
> >>
> >> This email message and any attachments are for the sole use of the
> >> intended recipient(s). Any unauthorized review, use, disclosure or
> >> distribution is prohibited. If you are not the intended recipient,
> please
> >> contact the sender by reply email and destroy all copies of the original
> >> message and any attachments.
> >
> >
>
>
>

Re: [VOTE] new operator ?=

Posted by Andres Almiray <aa...@gmail.com>.
Long live pompaduor walrus ...

What would be an appropriate nickname for ?=, I wonder.

-------------------------------------------
Java Champion; Groovy Enthusiast
http://jroller.com/aalmiray
http://www.linkedin.com/in/aalmiray
--
What goes up, must come down. Ask any system administrator.
There are 10 types of people in the world: Those who understand binary, and
those who don't.
To understand recursion, we must first understand recursion.

On Wed, Nov 23, 2016 at 7:35 PM, Paul King <pa...@asert.com.au> wrote:

> For all our other operators of the form:
>
> a X= b
>
> it is shorthand for:
>
> a = a X b
>
> So, to follow that convention the operator is:
>
> a ?:= b
>
> which as per previous discussions is a bit cumbersome, so I am +1 for
> the shortened form so long as we document appropriately.
>
> Paul.
>
>
> On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <je...@gmail.com>
> wrote:
> > +1
> >
> > Gerald R. Wiltse
> > jerrywiltse@gmail.com
> >
> >
> > On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
> > <Ja...@windstream.com> wrote:
> >>
> >> At first I was going to vote 0, because I feel like a = a ?: b is clear
> >> (and I compare it to a = a || b from JS). However, looking at the dev
> list,
> >> I definitely see a nice case for it:
> >>
> >> person.name.last = person.name.last ?: "unknown"
> >>
> >> When you have a non-trivial assignment expression, I see the benefit:
> >>
> >> person.name.last ?= "unknown"
> >>
> >> However, I feel like it is not intuitive or clear. But, I don't think
> the
> >> operator hurts, and it's certainly not any less intuitive than <=> for
> >> example or even ?: when seen for the very first time. It's an easy look
> up
> >> in Groovy docs, and if you don't know it and don't use it, it's not a
> huge
> >> loss. So it doesn't hurt to add it, and while not instantly readable,
> it's a
> >> trivial docs lookup when someone is reading the code.
> >>
> >> So, I vote +1. But, honestly, I don't see myself using it very often as
> >> I'd normally use Elvis at time of initial assignment. I wouldn't put it
> very
> >> high on a prioritized backlog of things to improve for Groovy.
> >>
> >> Jason
> >>
> >> -----Original Message-----
> >> From: Daniel Sun [mailto:realbluesun@hotmail.com]
> >> Sent: Wednesday, November 23, 2016 10:59 AM
> >> To: users@groovy.incubator.apache.org
> >> Subject: [VOTE] new operator ?=
> >>
> >> Hi all,
> >>
> >>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a
> ?:
> >> 'foo') were to be added to Groovy programming language, do you like it?
> >> (Yes: +1; No: -1; Not bad: 0)
> >>
> >> Cheers,
> >> Daniel.Sun
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
> >> Sent from the Groovy Users mailing list archive at Nabble.com.
> >>
> >> This email message and any attachments are for the sole use of the
> >> intended recipient(s). Any unauthorized review, use, disclosure or
> >> distribution is prohibited. If you are not the intended recipient,
> please
> >> contact the sender by reply email and destroy all copies of the original
> >> message and any attachments.
> >
> >
>

Re: [VOTE] new operator ?=

Posted by Paul King <pa...@asert.com.au>.
For all our other operators of the form:

a X= b

it is shorthand for:

a = a X b

So, to follow that convention the operator is:

a ?:= b

which as per previous discussions is a bit cumbersome, so I am +1 for
the shortened form so long as we document appropriately.

Paul.


On Thu, Nov 24, 2016 at 3:54 AM, Gerald Wiltse <je...@gmail.com> wrote:
> +1
>
> Gerald R. Wiltse
> jerrywiltse@gmail.com
>
>
> On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason
> <Ja...@windstream.com> wrote:
>>
>> At first I was going to vote 0, because I feel like a = a ?: b is clear
>> (and I compare it to a = a || b from JS). However, looking at the dev list,
>> I definitely see a nice case for it:
>>
>> person.name.last = person.name.last ?: "unknown"
>>
>> When you have a non-trivial assignment expression, I see the benefit:
>>
>> person.name.last ?= "unknown"
>>
>> However, I feel like it is not intuitive or clear. But, I don't think the
>> operator hurts, and it's certainly not any less intuitive than <=> for
>> example or even ?: when seen for the very first time. It's an easy look up
>> in Groovy docs, and if you don't know it and don't use it, it's not a huge
>> loss. So it doesn't hurt to add it, and while not instantly readable, it's a
>> trivial docs lookup when someone is reading the code.
>>
>> So, I vote +1. But, honestly, I don't see myself using it very often as
>> I'd normally use Elvis at time of initial assignment. I wouldn't put it very
>> high on a prioritized backlog of things to improve for Groovy.
>>
>> Jason
>>
>> -----Original Message-----
>> From: Daniel Sun [mailto:realbluesun@hotmail.com]
>> Sent: Wednesday, November 23, 2016 10:59 AM
>> To: users@groovy.incubator.apache.org
>> Subject: [VOTE] new operator ?=
>>
>> Hi all,
>>
>>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>> 'foo') were to be added to Groovy programming language, do you like it?
>> (Yes: +1; No: -1; Not bad: 0)
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context:
>> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>> Sent from the Groovy Users mailing list archive at Nabble.com.
>>
>> This email message and any attachments are for the sole use of the
>> intended recipient(s). Any unauthorized review, use, disclosure or
>> distribution is prohibited. If you are not the intended recipient, please
>> contact the sender by reply email and destroy all copies of the original
>> message and any attachments.
>
>

Re: [VOTE] new operator ?=

Posted by Mihai Cazacu <ca...@gmail.com>.
+1

Re: [VOTE] new operator ?=

Posted by Gerald Wiltse <je...@gmail.com>.
+1

Gerald R. Wiltse
jerrywiltse@gmail.com


On Wed, Nov 23, 2016 at 12:28 PM, Winnebeck, Jason <
Jason.Winnebeck@windstream.com> wrote:

> At first I was going to vote 0, because I feel like a = a ?: b is clear
> (and I compare it to a = a || b from JS). However, looking at the dev list,
> I definitely see a nice case for it:
>
> person.name.last = person.name.last ?: "unknown"
>
> When you have a non-trivial assignment expression, I see the benefit:
>
> person.name.last ?= "unknown"
>
> However, I feel like it is not intuitive or clear. But, I don't think the
> operator hurts, and it's certainly not any less intuitive than <=> for
> example or even ?: when seen for the very first time. It's an easy look up
> in Groovy docs, and if you don't know it and don't use it, it's not a huge
> loss. So it doesn't hurt to add it, and while not instantly readable, it's
> a trivial docs lookup when someone is reading the code.
>
> So, I vote +1. But, honestly, I don't see myself using it very often as
> I'd normally use Elvis at time of initial assignment. I wouldn't put it
> very high on a prioritized backlog of things to improve for Groovy.
>
> Jason
>
> -----Original Message-----
> From: Daniel Sun [mailto:realbluesun@hotmail.com]
> Sent: Wednesday, November 23, 2016 10:59 AM
> To: users@groovy.incubator.apache.org
> Subject: [VOTE] new operator ?=
>
> Hi all,
>
>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.
>
> This email message and any attachments are for the sole use of the
> intended recipient(s). Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply email and destroy all copies of the original
> message and any attachments.
>

RE: [VOTE] new operator ?=

Posted by "Winnebeck, Jason" <Ja...@windstream.com>.
At first I was going to vote 0, because I feel like a = a ?: b is clear (and I compare it to a = a || b from JS). However, looking at the dev list, I definitely see a nice case for it:

person.name.last = person.name.last ?: "unknown"

When you have a non-trivial assignment expression, I see the benefit:

person.name.last ?= "unknown"

However, I feel like it is not intuitive or clear. But, I don't think the operator hurts, and it's certainly not any less intuitive than <=> for example or even ?: when seen for the very first time. It's an easy look up in Groovy docs, and if you don't know it and don't use it, it's not a huge loss. So it doesn't hurt to add it, and while not instantly readable, it's a trivial docs lookup when someone is reading the code.

So, I vote +1. But, honestly, I don't see myself using it very often as I'd normally use Elvis at time of initial assignment. I wouldn't put it very high on a prioritized backlog of things to improve for Groovy.

Jason

-----Original Message-----
From: Daniel Sun [mailto:realbluesun@hotmail.com] 
Sent: Wednesday, November 23, 2016 10:59 AM
To: users@groovy.incubator.apache.org
Subject: [VOTE] new operator ?=

Hi all,

     If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
'foo') were to be added to Groovy programming language, do you like it?
(Yes: +1; No: -1; Not bad: 0)

Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
Sent from the Groovy Users mailing list archive at Nabble.com.

This email message and any attachments are for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message and any attachments.

Re: [VOTE] new operator ?=

Posted by Abhinav Sharma <ab...@gmail.com>.
+1
On Nov 23, 2016 10:19 PM, "Dierk König" <di...@canoo.com> wrote:

> +1
>
> > Am 23.11.2016 um 16:59 schrieb Daniel Sun <re...@hotmail.com>:
> >
> > Hi all,
> >
> >     If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> > 'foo') were to be added to Groovy programming language, do you like it?
> > (Yes: +1; No: -1; Not bad: 0)
> >
> > Cheers,
> > Daniel.Sun
> >
> >
> >
> > --
> > View this message in context: http://groovy.329449.n5.
> nabble.com/VOTE-new-operator-tp5736931.html
> > Sent from the Groovy Users mailing list archive at Nabble.com.
>
>

Re: [VOTE] new operator ?=

Posted by Dierk König <di...@canoo.com>.
+1

> Am 23.11.2016 um 16:59 schrieb Daniel Sun <re...@hotmail.com>:
> 
> Hi all,
> 
>     If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
> 
> Cheers,
> Daniel.Sun
> 
> 
> 
> --
> View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.


Re: [VOTE] new operator ?=

Posted by Edgar Harutyunyan <eh...@fipsoft.com>.
+1

On 11/23/2016 08:07 PM, S�ren Berg Glasius (GR8Conf EU) wrote:
> +1
> 
> Best regards,
> S�ren Berg Glasius
> GR8Conf Europe organizing team
> 
> GR8Conf ApS
> Mobile: +45 40 44 91 88, Web: www.gr8conf.eu <http://www.gr8conf.eu/>,
> Skype: sbglasius 
> Company Address: Buchwaldsgade 50, 5000 Odense C, Denmark
> Personal Address: Hedevej 1, Gl. Rye, 8680 Ry, Denmark
> --- GR8Conf - Dedicated to the Groovy Ecosystem
> 
> From: Daniel Sun <re...@hotmail.com> <ma...@hotmail.com>
> Reply: users@groovy.apache.org <ma...@groovy.apache.org>
> <us...@groovy.apache.org> <ma...@groovy.apache.org>
> Date: 23. november 2016 at 16.59.10
> To: users@groovy.incubator.apache.org
> <ma...@groovy.incubator.apache.org>
> <us...@groovy.incubator.apache.org>
> <ma...@groovy.incubator.apache.org>
> Subject: [VOTE] new operator ?=
> 
>> Hi all,
>>
>> If the new operator ?= (e.g. a ?= 'foo' is equivalent of a = a ?:
>> 'foo') were to be added to Groovy programming language, do you like it?
>> (Yes: +1; No: -1; Not bad: 0)
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> -- 
>> View this message in context:
>> http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>> Sent from the Groovy Users mailing list archive at Nabble.com.

-- 
Kind Regards,
Edgar

Re: [VOTE] new operator ?=

Posted by "Søren Berg Glasius (GR8Conf EU)" <sb...@gr8conf.org>.
+1

Best regards,
Søren Berg Glasius
GR8Conf Europe organizing team

GR8Conf ApS
Mobile: +45 40 44 91 88, Web: www.gr8conf.eu, Skype: sbglasius
Company Address: Buchwaldsgade 50, 5000 Odense C, Denmark
Personal Address: Hedevej 1, Gl. Rye, 8680 Ry, Denmark
--- GR8Conf - Dedicated to the Groovy Ecosystem

From: Daniel Sun <re...@hotmail.com> <re...@hotmail.com>
Reply: users@groovy.apache.org <us...@groovy.apache.org>
<us...@groovy.apache.org>
Date: 23. november 2016 at 16.59.10
To: users@groovy.incubator.apache.org <us...@groovy.incubator.apache.org>
<us...@groovy.incubator.apache.org>
Subject:  [VOTE] new operator ?=

Hi all,

If the new operator ?= (e.g. a ?= 'foo' is equivalent of a = a ?:
'foo') were to be added to Groovy programming language, do you like it?
(Yes: +1; No: -1; Not bad: 0)

Cheers,
Daniel.Sun



-- 
View this message in context:
http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Re: [VOTE] new operator ?=

Posted by John Wagenleitner <jo...@gmail.com>.
+1

On Nov 23, 2016 7:59 AM, "Daniel Sun" <re...@hotmail.com> wrote:

> Hi all,
>
>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.
>

Re: [VOTE] new operator ?=

Posted by Peter McNeil <pe...@mcneils.net>.
+1


On 24/11/16 02:59, Daniel Sun wrote:
> Hi all,
>
>       If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.

-- 
web: http://nerderg.com
Twitter: http://twitter.com/pmcneil
Google+: https://plus.google.com/u/0/communities/110661434396927001866


Re: [VOTE] new operator ?=

Posted by Daniel Sun <re...@hotmail.com>.
As most of us vote +1, I'll try to implement the new feature after I fix some
major
issues(https://issues.apache.org/jira/browse/GROOVY-8005?jql=project%20%3D%20GROOVY%20AND%20resolution%20%3D%20Unresolved%20AND%20assignee%20%3D%20daniel_sun%20ORDER%20BY%20priority%20DESC)

Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931p5737003.html
Sent from the Groovy Users mailing list archive at Nabble.com.

Re: [VOTE] new operator ?=

Posted by Guillaume Laforge <gl...@gmail.com>.
Yes, +1 :-)

On Wed, Nov 23, 2016 at 4:59 PM, Daniel Sun <re...@hotmail.com> wrote:

> Hi all,
>
>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.
>



-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Re: [VOTE] new operator ?=

Posted by Clayton Long <cl...@gmail.com>.
+1
I like it.

Thanks,

Clayton
Sent from my smartphone;
Please excuse any misspellings

> On Nov 23, 2016, at 10:59 AM, Daniel Sun <re...@hotmail.com> wrote:
> 
> Hi all,
> 
>     If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
> 
> Cheers,
> Daniel.Sun
> 
> 
> 
> --
> View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.

Re: [VOTE] new operator ?=

Posted by David Dawson <da...@simplicityitself.com>.
+1



On 23 November 2016 at 16:01, Guillaume Laforge <gl...@gmail.com> wrote:

> There's more context in that thread here:
> http://www.groovy-lang.org/mailing-lists.html
>
> On Wed, Nov 23, 2016 at 5:00 PM, Abhinav Sharma <ab...@gmail.com>
> wrote:
>
>> Well, you need to give more use cases for this one
>> On Nov 23, 2016 9:29 PM, "Daniel Sun" <re...@hotmail.com> wrote:
>>
>>> Hi all,
>>>
>>>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>>> 'foo') were to be added to Groovy programming language, do you like it?
>>> (Yes: +1; No: -1; Not bad: 0)
>>>
>>> Cheers,
>>> Daniel.Sun
>>>
>>>
>>>
>>> --
>>> View this message in context: http://groovy.329449.n5.nabble
>>> .com/VOTE-new-operator-tp5736931.html
>>> Sent from the Groovy Users mailing list archive at Nabble.com.
>>>
>>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge <http://twitter.com/glaforge> / Google+
> <https://plus.google.com/u/0/114130972232398734985/posts>
>



-- 


David Dawson | CEO | Simplicity Itself

Tel +44 7866 011 256
Skype: davidadawson
david.dawson@simplicityitself.com
http://www.simplicityitself.com

Re: [VOTE] new operator ?=

Posted by Guillaume Laforge <gl...@gmail.com>.
Roh, let me fix the link:
http://groovy.329449.n5.nabble.com/PROPOSAL-new-operator-tp5736886.html

On Wed, Nov 23, 2016 at 5:01 PM, Guillaume Laforge <gl...@gmail.com>
wrote:

> There's more context in that thread here:
> http://www.groovy-lang.org/mailing-lists.html
>
> On Wed, Nov 23, 2016 at 5:00 PM, Abhinav Sharma <ab...@gmail.com>
> wrote:
>
>> Well, you need to give more use cases for this one
>> On Nov 23, 2016 9:29 PM, "Daniel Sun" <re...@hotmail.com> wrote:
>>
>>> Hi all,
>>>
>>>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>>> 'foo') were to be added to Groovy programming language, do you like it?
>>> (Yes: +1; No: -1; Not bad: 0)
>>>
>>> Cheers,
>>> Daniel.Sun
>>>
>>>
>>>
>>> --
>>> View this message in context: http://groovy.329449.n5.nabble
>>> .com/VOTE-new-operator-tp5736931.html
>>> Sent from the Groovy Users mailing list archive at Nabble.com.
>>>
>>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge <http://twitter.com/glaforge> / Google+
> <https://plus.google.com/u/0/114130972232398734985/posts>
>



-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Re: [VOTE] new operator ?=

Posted by Guillaume Laforge <gl...@gmail.com>.
There's more context in that thread here:
http://www.groovy-lang.org/mailing-lists.html

On Wed, Nov 23, 2016 at 5:00 PM, Abhinav Sharma <ab...@gmail.com> wrote:

> Well, you need to give more use cases for this one
> On Nov 23, 2016 9:29 PM, "Daniel Sun" <re...@hotmail.com> wrote:
>
>> Hi all,
>>
>>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>> 'foo') were to be added to Groovy programming language, do you like it?
>> (Yes: +1; No: -1; Not bad: 0)
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context: http://groovy.329449.n5.nabble
>> .com/VOTE-new-operator-tp5736931.html
>> Sent from the Groovy Users mailing list archive at Nabble.com.
>>
>


-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Re: [VOTE] new operator ?=

Posted by Jim Northrop <ja...@googlemail.com>.
Yes, more use cases please. 

Sent from my iPad

> On 23 Nov 2016, at 17:00, Abhinav Sharma <ab...@gmail.com> wrote:
> 
> Well, you need to give more use cases for this one
> 
>> On Nov 23, 2016 9:29 PM, "Daniel Sun" <re...@hotmail.com> wrote:
>> Hi all,
>> 
>>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
>> 'foo') were to be added to Groovy programming language, do you like it?
>> (Yes: +1; No: -1; Not bad: 0)
>> 
>> Cheers,
>> Daniel.Sun
>> 
>> 
>> 
>> --
>> View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
>> Sent from the Groovy Users mailing list archive at Nabble.com.

Re: [VOTE] new operator ?=

Posted by Abhinav Sharma <ab...@gmail.com>.
Well, you need to give more use cases for this one
On Nov 23, 2016 9:29 PM, "Daniel Sun" <re...@hotmail.com> wrote:

> Hi all,
>
>      If the new operator ?=  (e.g. a ?= 'foo'  is equivalent of  a = a ?:
> 'foo') were to be added to Groovy programming language, do you like it?
> (Yes: +1; No: -1; Not bad: 0)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/VOTE-new-operator-tp5736931.html
> Sent from the Groovy Users mailing list archive at Nabble.com.
>