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

Using string variables in condition. #15

Open
0xfk0 opened this issue Sep 13, 2024 · 0 comments
Open

Using string variables in condition. #15

0xfk0 opened this issue Sep 13, 2024 · 0 comments

Comments

@0xfk0
Copy link

0xfk0 commented Sep 13, 2024

Currently if and while operators interpret condition as integral number. And if the condition is empty or is not the integral number, result will be zero (or false). This causes disambiguity: there is no possibility to distinguish between empty string and the string containing zero (or string beginning from "0" and which is not octal number).

Due to this problem, it is impossible to implement very basic list operations such as "foreach", because empty string (or list) cannot be distinguished from non-empty string.

@0xfk0 0xfk0 changed the title u Using string variables in condition. Sep 13, 2024
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

1 participant