hy/tests/native_tests/contrib
Gergely Nagy cbc2eed900
defclass reimagined
defclass now has a new syntax:

 (defclass Name [BaseList]
   [property value
    property value] ;; optional

   (defn method [self]
     self.property))

Anything after the optional property list (which will be translated to a
setv within the class context) will be added to the class body. This
allows one to have side effects and complex expressions within the class
definition.

As a side effect, defining methods is much more friendly now!

Closes #850.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-08-04 16:43:07 +02:00
..
__init__.hy contrib/anaphoric: More anaphoric macros added 2013-12-26 05:57:06 +02:00
anaphoric.hy Tests for ap-pipe and ap-compose 2015-04-26 18:19:01 +02:00
botsbuildbots.hy Move Botsbuildbots to contrib 2015-08-04 11:59:10 +02:00
curry.hy Add Curry module. 2014-03-29 14:40:13 -04:00
loop.hy Added loop/recur macro for tail-call optimization 2014-01-12 14:02:27 -05:00
meth.hy defclass reimagined 2015-08-04 16:43:07 +02:00
multi.hy Added defmulti 2014-02-05 16:07:48 +01:00
walk.hy contrib.walk: Coerce non-list iterables into list form 2015-07-15 16:59:49 +02:00