hy/docs
Kodi Arfer e4a7b317e1 Make fn work like lambda and remove lambda (#1228)
* with-decorator: Allow a `setv` form as the form to be decorated

This feature is of dubious value by itself, but it's necessary to allow `defn` to create a lambda instead of a `def`.

* Make `fn` work the same as `lambda`

That is, allow it to generate a `lambda` instead of a `def` statement if the function body is just an expression.

I've removed two uses of with_decorator in hy.compiler because they'd require adding another case to HyASTCompiler.compile_decorate_expression and they have no ultimate effect, anyway.

In a few tests, I've added a meaningless statement in `fn` bodies to force generation of a `def`.

I've removed `test_fn_compiler_empty_function` rather than rewrite it because it seems like a pain to maintain and not very useful.

* Remove `lambda`, now that `fn` does the same thing
2017-02-22 17:36:52 -06:00
..
_static Reorganize documentation. 2014-01-25 21:01:16 +02:00
contrib Remove contrib.flow 2016-12-29 08:35:54 -08:00
extra Make fn work like lambda and remove lambda (#1228) 2017-02-22 17:36:52 -06:00
language Make fn work like lambda and remove lambda (#1228) 2017-02-22 17:36:52 -06:00
.gitignore Adding in a docs directory. 2013-03-12 22:53:45 -04:00
conf.py Changed conf.py to use RTD theme if available 2014-04-24 00:17:58 +03:00
coreteam.rst Remove @rwtolbert from core team 2016-12-31 11:05:53 -08:00
hacking.rst Use HTTPS for *.readthedocs.io 2016-05-15 15:28:23 +02:00
index.rst Add hy.extra 2016-12-26 15:39:26 -08:00
make.bat This change updates the required Pygments version to 1.6, which 2014-03-14 09:01:47 -04:00
Makefile Adding in a docs directory. 2013-03-12 22:53:45 -04:00
quickstart.rst change quickstart install from PyPI to GitHub (#1116) 2016-09-24 15:54:32 -06:00
style-guide.rst Merge branch 'let-it-be' 2017-02-13 09:19:37 -08:00
tutorial.rst Merge branch 'let-it-be' 2017-02-13 09:19:37 -08:00