Skip to content

Commit

Permalink
reorganize some stuff in macro_extras readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Technologicat committed Oct 5, 2018
1 parent f3e183d commit d31f3d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macro_extras/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Macro extras: ``unpythonic.syntax``
# ``unpythonic.syntax``: macro extras

These optional features are built on [MacroPy](https://github.com/azazel75/macropy), from PyPI package ``macropy3``.

!! **Currently** (10/2018) this requires the latest MacroPy from git HEAD. !!

Because macro expansion occurs at import time, the usage example `main.py` cannot be run directly. Instead, run it via the bootstrap script `run.py`, or use the included [generic MacroPy3 bootstrapper](macropy3). Usage of the bootstrapper is `./macropy3 main`; see `-h` for options.

There is no abbreviation for ``memoize(lambda: ...)``, because ``MacroPy`` itself already provides ``lazy`` and ``interned``.

*Whether the language with these additions is Python anymore, is another question.*
!! **Currently** (10/2018) this requires the latest MacroPy from git HEAD. !!

## ``curry``: Automatic currying for Python

Expand Down Expand Up @@ -270,3 +268,5 @@ with prefix, curry: # important: apply prefix first, then curry
assert (mymap, double, (q, 1, 2, 3)) == ll(2, 4, 6)
```

*Toto, I've a feeling we're not in Python anymore.*

0 comments on commit d31f3d1

Please sign in to comment.