hy/tests/native_tests
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
..
contrib defclass reimagined 2015-08-04 16:43:07 +02:00
__init__.hy ideas, ideas. 2013-03-05 18:39:34 -05:00
cons.hy Add a cons object and related mechanisms 2014-01-23 23:08:52 +01:00
core.hy Re-implemented last function so that it also supports iterators. Added a test to reflect this. 2015-04-07 10:30:52 +01:00
defclass.hy defclass reimagined 2015-08-04 16:43:07 +02:00
language.hy Merge pull request #863 from farhaven/read-str 2015-07-31 23:58:16 +02:00
mathematics.hy defclass reimagined 2015-08-04 16:43:07 +02:00
native_macros.hy Move Botsbuildbots to contrib 2015-08-04 11:59:10 +02:00
py3_only_tests.hy implement keyword-only arguments 2015-07-22 21:53:06 -07:00
quote.hy Remove HyLambdaListKeyword from the parser 2014-06-03 21:36:49 -04:00
reader_macros.hy reader macro #@ for with-decorator 2015-07-26 15:05:38 -07:00
shadow.hy Add shadow functions for comparison operators 2015-04-24 12:19:23 -06:00
unless.hy add nil as synonym for None 2013-12-27 13:50:19 -07:00
when.hy add nil as synonym for None 2013-12-27 13:50:19 -07:00
with_decorator.hy defclass reimagined 2015-08-04 16:43:07 +02:00
with_test.hy defclass reimagined 2015-08-04 16:43:07 +02:00