hy/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
..
compilers AST test coverage for &kwonly; cant_compile returns exception object 2015-07-22 22:06:51 -07:00
importer hy/compiler.py: import only handles HySymbol and HyList, bail on others 2014-02-11 17:29:50 +01:00
lex Add one-argument division and rationals (closes #825 and #826) 2015-07-29 13:30:24 -05:00
macros move 'wrap_value' test from macros/ to models/ 2015-01-24 08:32:20 +08:00
models Merge pull request #761 from larme/fix-replace-hyobject 2015-07-23 14:09:56 +02:00
native_tests defclass reimagined 2015-08-04 16:43:07 +02:00
resources Fixes a long-standing bug in import under Python 3.3 and later. 2014-12-07 11:02:48 -07:00
test_files Run file using hy -i 2015-02-28 18:11:42 +10:00
__init__.py Move Botsbuildbots to contrib 2015-08-04 11:59:10 +02:00
test_bin.py Run file using hy -i 2015-02-28 18:11:42 +10:00