[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-dev
Subject:    [groovy-dev] Basic Scala-like pattern matching implementation
From:       Sergei Egorov <bsideup () gmail ! com>
Date:       2014-08-31 16:52:00
Message-ID: CAAJdKXkDg8q6ukMD+7UBKbVLC=JoUrSxnQ4f6vcLO-VRO-CKRA () mail ! gmail ! com
[Download RAW message or body]

Hello everyone!

It's me again:)

Just submitted my "Proof of concept" implementation of *Pattern Matching*
on top of "Macro Methods" concept introduced by me before.


Here you can find simple tests for it:
https://github.com/bsideup/groovy-core/blob/03b2c5df0f29ef4dd8070d720cc3ed0fabb9fca7/subprojects/groovy-macro/src/test/groovy/groovy/BasicMatchTest.groovy


Current implementation is simple and not completed yet, but it shows how
cool macro methods are:

https://github.com/bsideup/groovy-core/blob/03b2c5df0f29ef4dd8070d720cc3ed0fabb9fca7/s \
ubprojects/groovy-macro/src/main/java/org/codehaus/groovy/runtime/MacroGroovyMethods.java



Dear groovy developers and users. *I need your feedback! *It's sad to
implement something that will not be demanded, and I need to know, should I
continue this way or not:)

There is a lot of doubts about syntax and other things and I need you to
help me bring this awesome feature to the Groovy.

Speaking of macro methods, this feature can be introduced in Groovy without
pattern matching, but pattern matching is built on top of macro methods.
So, we can complete macro methods, make it a part of Groovy, and then
develop pattern matching as first language feature on top of macro methods.



Thanks!

-- 
Best regards,
Sergei Egorov


[Attachment #3 (text/html)]

<div dir="ltr">Hello everyone!  <div><br></div><div>It&#39;s me \
again:)<br><div><br></div><div>Just submitted my &quot;Proof of concept&quot; \
implementation of <b>Pattern Matching</b> on top of &quot;Macro Methods&quot; concept \
introduced by me before.</div> <div><br></div><div><br></div><div>Here you can find \
simple tests for it:</div><div><a \
href="https://github.com/bsideup/groovy-core/blob/03b2c5df0f29ef4dd8070d720cc3ed0fabb9 \
fca7/subprojects/groovy-macro/src/test/groovy/groovy/BasicMatchTest.groovy">https://gi \
thub.com/bsideup/groovy-core/blob/03b2c5df0f29ef4dd8070d720cc3ed0fabb9fca7/subprojects/groovy-macro/src/test/groovy/groovy/BasicMatchTest.groovy</a></div>
 <div><br></div><div>Current implementation is simple and not completed yet, but it \
shows how cool macro methods are:</div><div><br></div><div><a \
href="https://github.com/bsideup/groovy-core/blob/03b2c5df0f29ef4dd8070d720cc3ed0fabb9 \
fca7/subprojects/groovy-macro/src/main/java/org/codehaus/groovy/runtime/MacroGroovyMet \
hods.java">https://github.com/bsideup/groovy-core/blob/03b2c5df0f29ef4dd8070d720cc3ed0 \
fabb9fca7/subprojects/groovy-macro/src/main/java/org/codehaus/groovy/runtime/MacroGroovyMethods.java</a></div>
 <div><br></div><div><br></div><div>Dear groovy developers and users.  <b>I need your \
feedback! </b>It&#39;s sad to implement something that will not be demanded, and I \
need to know, should I continue this way or not:)</div> <div><br></div><div>There is \
a lot of doubts about syntax and other things and I need you to help me bring this \
awesome feature to the Groovy.</div><div><br></div><div>Speaking of macro methods, \
this feature can be introduced in Groovy without pattern matching, but pattern \
matching is built on top of macro methods. So, we can complete macro methods, make it \
a part of Groovy, and then develop pattern matching as first language feature on top \
of macro methods.</div> <div><br></div><div><br></div><div><br></div><div>Thanks!<br \
clear="all"><div><br></div>-- <br><div dir="ltr">Best regards,<div>Sergei \
Egorov</div></div> </div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic