Skip to content

Commit adec9c5

Browse files
committed
shorten dialects main level doc
1 parent 1770be7 commit adec9c5

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

doc/dialects.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,6 @@
2323

2424
# Examples of creating dialects using `mcpyrate`
2525

26-
What if Python had automatic tail-call optimization and an implicit return statement? Look no further:
27-
28-
```python
29-
from unpythonic.dialects import dialects, Lispython # noqa: F401
30-
31-
def factorial(n):
32-
def f(k, acc):
33-
if k == 1:
34-
return acc
35-
f(k - 1, k * acc)
36-
f(n, acc=1)
37-
assert factorial(4) == 24
38-
factorial(5000) # no crash
39-
```
40-
4126
The [dialects subsystem of `mcpyrate`](https://github.com/Technologicat/mcpyrate/blob/master/doc/dialects.md) makes Python into a language platform, à la [Racket](https://racket-lang.org/).
4227
It provides the plumbing that allows to create, in Python, dialects that compile into Python
4328
at macro expansion time. It is geared toward creating languages that extend Python

0 commit comments

Comments
 (0)