Hi all,
I would like to propose adding support for @DelegatesTo on named
arguments (Map types) in order to improve static compilation support
for builders. I have written up
https://issues.apache.org/jira/browse/GROOVY-7956
For the proposal.
Here are some considerations:
* Keys have to be Stri
I was just wishing for this a couple weeks ago! I'd love to see this added.
A.
On Oct 4, 2016 2:57 PM, "Graeme Rocher" wrote:
> Hi all,
>
> I would like to propose adding support for @DelegatesTo on named
> arguments (Map types) in order to improve static compilation support
> for builders. I h
Excellent, well done!
From: daniel_sun [realblue...@hotmail.com]
Sent: 03 October 2016 17:22
To: d...@groovy.incubator.apache.org
Subject: [PROGRESS REPORT 20161004]groovy-parser
Hi List,
Currently the new parser can parse almost all groovy source
Closely linked to
https://issues.apache.org/jira/browse/GROOVY-7956
I would like to propose adding the ability to create builders that can
be statically compiled by adding a capability similar to Scala's
Dynamic:
https://issues.apache.org/jira/browse/GROOVY-7957
Some considerations:
* Behavior
Hi Graeme,
FYI a few years ago I created an AST transformation for MapArguments:
https://github.com/bsideup/GroovyMapArguments/blob/master/src/test/groovy/ru/trylogic/groovy/mapargs/MapArgumentsTest.groovy
Might be helpful :)
BR,
Sergei
On Tue, Oct 4, 2016 at 5:33 PM Graeme Rocher
wrote:
> C
Interesting. Also related to this, I wrote a type checking extension
that makes it possible to statically compile StreamingJsonBuilder by
delegating missing methods to invokeMethod:
https://github.com/grails/grails-views/blob/master/core/src/main/groovy/grails/views/compiler/BuilderTypeCheckingExt
sounds good
On 04.10.2016 14:56, Graeme Rocher wrote:
Hi all,
I would like to propose adding support for @DelegatesTo on named
arguments (Map types) in order to improve static compilation support
for builders. I have written up
https://issues.apache.org/jira/browse/GROOVY-7956
For the proposa
On 04.10.2016 16:32, Graeme Rocher wrote:
[...]
I would like to propose adding the ability to create builders that can
be statically compiled by adding a capability similar to Scala's
Dynamic:
https://issues.apache.org/jira/browse/GROOVY-7957
the question is what you really gain from that...
The use case is really around builders, not so much around regular objects.
Builders don't really use return types that much, but if you did want
return type information we could support methodMissing that return a
concrete type. Typical builder code that could be statically compiled
def json = n
+1
4 окт. 2016 г. 16:34 пользователь "Miles, Chris (MFT)"
написал:
> Excellent, well done!
>
> From: daniel_sun [realblue...@hotmail.com]
> Sent: 03 October 2016 17:22
> To: d...@groovy.incubator.apache.org
> Subject: [PRO
+1 I was writing a type checking extension that did this but it would much
better if it were built into the compiler itself
On Tue, Oct 4, 2016 at 11:18 AM, Jochen Theodorou wrote:
> sounds good
>
>
> On 04.10.2016 14:56, Graeme Rocher wrote:
>
>> Hi all,
>>
>> I would like to propose adding sup
On 04.10.2016 18:00, Graeme Rocher wrote:
[...] If you combine this
will my other proposal around allowing delegates to on maps you can
see that you could implement markup builder for static compilation
mkp.html {
body {
div id:"test"
}
}
ok, let us assume mkp is a @
I'm trying to set the new parser as the default to build and test, *13396
tests completed, 6 failed, 9 skipped*
https://travis-ci.org/danielsun1106/groovy
--
View this message in context:
http://groovy.329449.n5.nabble.com/PROGRESS-REPORT-20161004-groovy-parser-tp5735725p5735777.html
Thanks :)
--
View this message in context:
http://groovy.329449.n5.nabble.com/PROGRESS-REPORT-20161004-groovy-parser-tp5735725p5735778.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
Hi Jochen,
Thanks for the interesting analysis of dynamic dispatch via builders
in dynamic Groovy! I feel though the conversation is getting slightly
derailed, this is not about dynamic Groovy this about statically
compiled Groovy. Let us revisit the goals:
1) Allow builders to be used when the c
15 matches
Mail list logo