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

what would happen if: print("DreamBerd")!!? #704

Open
Dark-Ai-py opened this issue Jul 9, 2024 · 2 comments
Open

what would happen if: print("DreamBerd")!!? #704

Dark-Ai-py opened this issue Jul 9, 2024 · 2 comments

Comments

@Dark-Ai-py
Copy link

I am writing a compiler/ interpreter and have run into this edge case. I have 3 ideas on how to handle this.
1 throw an error
2 ignore the 2 exclamation marks
3 count all of them for importance but act as if it is only question marks.

(I made multiple ?'s like multiple !'s)

@Dark-Ai-py Dark-Ai-py changed the title what would happen if print("DreamBerd")!!? what would happen if: print("DreamBerd")!!? Jul 9, 2024
@guigui0246
Copy link

guigui0246 commented Jul 9, 2024

I think it should be like !x1 and print to debug
???? -> !x-2 + debug
!!! -> !x3
?!? -> !x1-√2 + debug

so like n ? is -√n !

@Dark-Ai-py
Copy link
Author

what do you mean with all the math?

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