Open dylanbeattie opened 5 months ago
Might I suggest that this be as a full word only? I'd rather not have the full code printed just because I included the word "equine" as a variable name
That's a good call - agreed that it shouldn't be triggered by "equine".
Now I think about it... what if the activation keyword was quïne
with a mëtäl ümläüt over the i
? That'll produce the same behaviour, but much less risk of accidentally quining your program because you said your lead singer's harlequinery wouldn't work without his sequined underwear.
If anybody's curious, the colliding words are:
The umlaut solves that issue, but frankly it's hard to type. Why not simply require that the word "quine" have whitespace (or file start/end) before and after? That avoids all overlap words.
So here's an idea:
The Rockstar interpreter will accept ANY source code file containing the word "quine", and will print the entire source code.
That's it. So if you want to use it in something like the ouroboros quine... easy.