groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Link <>
Subject Re: Fate of TailRecursive
Date Sat, 26 Nov 2016 11:22:55 GMT

> Am 26.11.2016 um 12:06 schrieb Pascal Schumacher <>:
> it hasn't been removed

Andres not being aware of @TailRecursive in the core shows how difficult it is to advertise
language features that are perceived to be "just add-ons" and not part of the syntax.

In the 2 or so years that @TailRecursive has existed within Groovy core only one single related
issue  (I'm aware of) got into the official issue tracker. That's probably not because my
code is perfect and bugfree but because hardly anyone uses it. We should consider that whenever
we think about adding yet another "language" feature through means of an AST.


>> Am 26.11.2016 um 12:04 schrieb Johannes Link:
>> Unless it has been removed again it should still be in core.
>> Von meinem iPad gesendet
>>> Am 26.11.2016 um 11:13 schrieb Andres Almiray <>:
>>> Didn't it get merged into Groovy core after some time living as an external download?
>>> Sent from my primitive Tricorder
>>>> On Nov 26, 2016, at 10:58 AM, Johannes Link <> wrote:
>>>> 2016-11-26 10:12 GMT+01:00 Andres Almiray <>:
>>>>> This is exactly what happened with @TailRecursive. The feature proved
to be good enough for 80% of the cases, for the remaining it was
>>>>> either verbose or required a true syntax change. It's likely this enhanced
switch will encounter the same fate.
>>>> What fate did @TailRecursive encounter? Just asking as the original
>>>> developer of the AST transformation ...
>>>> cheers, Johannes

View raw message