Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quines #338

Open
dylanbeattie opened this issue May 29, 2024 · 3 comments
Open

Quines #338

dylanbeattie opened this issue May 29, 2024 · 3 comments

Comments

@dylanbeattie
Copy link
Collaborator

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.

@caseyc37
Copy link

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

@dylanbeattie
Copy link
Collaborator Author

dylanbeattie commented May 30, 2024

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:

  1. basquine
  2. broquineer
  3. chloroquine
  4. equine
  5. equinecessary
  6. equinely
  7. equines
  8. fourquine
  9. harlequinery
  10. harlequinesque
  11. palanquined
  12. palanquiner
  13. pamaquine
  14. pentaquine
  15. plasmoquine
  16. preterequine
  17. primaquine
  18. quinela
  19. quinelas
  20. quinella
  21. quinellas
  22. quinet
  23. quinetum
  24. sequined
  25. totaquine
  26. unequine
  27. vasquine

@caseyc37
Copy link

caseyc37 commented Jun 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants