Hacker News new | ask | show | jobs
by jabbany 2324 days ago
Ah, this reminds me of the time I encountered a polyglot "config file" in the wild in a university autograding system.

Instead of being parsed, it was `import`-ed and `include`-d in Python code and Makefiles. It had a `.py` extension so it took me a while to figure out why everything was breaking when I added some Python code in it. All in all, a very cursed setup.

1 comments

There's some production code at my work that relies on a file being parsable in two languages