Re: libranet.de/display/0b6b25a8-2…

(but I don't want to spam that thread any more than I already have)

> My fantasy project is implementing py2 in a language-oriented-programming for Python, the name of which escapes me right now.

Ah, here it is, #pydialect:

github.com/Technologicat/pydia…

> Place a lang-import at the start of your module that uses a dialect:

> from __lang__ import piethon

> Run your program (in this example written in the piethon dialect) through the pydialect bootstrapper instead of python3 directly

[ . . . ]

> The lang-import syntax was chosen as a close pythonic equivalent to Racket's #lang foo.

#lop #LanguageOrientedProgramming #racket #python

@racket @python
Claes Wallin (ιŸ‹ε˜‰θͺ ) SE HK
Follow

@clacke

This is an interesting one indeed. I guess Py2 could be made a Py3 dialect... unless there were some fundamental syntactic changes that would make it impossible. I can think of "print x" vs "print(x)" but I'll leave it to people more competent on interpreter development :)

@python @racket

Β· Β· 1 Β· 2 Β· 0
@kravietz Although pydialect is targeted at dialects, I believe I read it does support an arbitrary reader, so it should be able to handle any syntax you throw at it, Python-like or not.
Sign in to participate in the conversation
Mastodon πŸ” privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!