-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consistent string and var for steps echo, dump, write, check #693
Conversation
to continue to test separately |
Edge cases include:
|
|
@siowyisheng initial finding turns out the behaviour with single quote is consistent. |
Hi @siowyisheng this looks good after doing some tests. For your checks. 1 potential improvement is whether to make single quote usable without the escape character, though this is the same behaviour for all steps. So we can evaluate that separately if that makes sense. I thought over whether this change can be made backward compatible by detecting input passed in from the script. It seems like it isn't possible to do it deterministically. There isn't a fool proof way to detect for sure whether user is typing quotes to mean string or really want to echo a quotation mark. Similarly for This seems like a change that cant be made backward compatible. Another idea is we can evaluate all those changes in v6 and create some migration script to convert old scripts to new scripts format (eg .tag extension, formatting used by echo, dump, write, check). This could remove user friction substantially for scripts that uses these steps a lot. |
Was reading your new docs and saw this.. It seems like for conditions and defining of variables there will still be 'inconsistency' as text needs to be enclosed in quotation marks and variables with backticks. Hmm... Can't really remove the need for quotations marks is that correct? For eg below, if remove quotation marks then it can introduce ambiguous situations to tell which is operator which is text.
|
As discussed, implementing as planned. Least of all evils. |
tested and LGTM |
1 similar comment
tested and LGTM |
* consistency in string and var context * consistency for string and var in steps * test signature for change
@siowyisheng raising draft PR for your review and testing. This change is quite pervasive, will need to work together on some iterations to cover edge cases thoroughly.