Comment

Comment by sillysaurusx

Fun fact: you can overload the Python import system to work with other languages that you create.

I use this for my Python-based Lisp: https://github.com/shawwn/pymen/blob/ml/importer.py

  import foo
checks for "foo.l", and if found, compiles it to foo.py on the fly and imports that instead.

It's so cursed. I love it.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton