Replace escaped characters with % syntax
Replace escaped characters with % syntax
Replace Loop Parse, string , `; with Loop Parse, string , % ";"
Re: Replace escaped characters with % syntax
Neither can I find the first string anywhere in the docs, nor do I see the need since both are valid syntax.
Re: Replace escaped characters with % syntax
Explain why in Example 4 of the Loop parse page
is a valid construction to an AutoHotkey newbie. Too add to the confusion,
is not. whereas
is.
Code: Select all
Loop, Parse, Colors, `,|;
Code: Select all
Loop, Parse, Colors, ;
Code: Select all
Loop, Parse, Colors, `,`n
Re: Replace escaped characters with % syntax
I would say, "If the comma weren't escaped, it would be the separator between parameters." I think they would get that pretty quickly.iseahound wrote: ↑ Explain why in Example 4 of the Loop parse page
is a valid construction to an AutoHotkey newbie.Code: Select all
Loop, Parse, Colors, `,|;
These all have good reasons why they are true, as I'm sure you know (space followed by ; indicates a comment, and a comma is a parameter separator).iseahound wrote: ↑ Too add to the confusion,
is not. whereasCode: Select all
Loop, Parse, Colors, ;
is.Code: Select all
Loop, Parse, Colors, `,`n
It sounds like you are not asking for a change to the language itself, so you would prefer that the documentation didn't show escaping characters at all?
Re: Replace escaped characters with % syntax
im, too, for revamping the docs to demo only current, best practices
the only argument u can make for keeping the legacy examples around is "theres a lot of legacy code out there".
what can be done is introduce "Expression | Legacy(NOT RECOMMENDED)" tabs to codeboxes hosting revamped examples. that way u get to avoid outright having to delete them
the only argument u can make for keeping the legacy examples around is "theres a lot of legacy code out there".
what can be done is introduce "Expression | Legacy(NOT RECOMMENDED)" tabs to codeboxes hosting revamped examples. that way u get to avoid outright having to delete them
Re: Replace escaped characters with % syntax
We could have clickable little boxes that hide the ugly code but people can view if they really see the need to.
Recommends AHK Studio
Re: Replace escaped characters with % syntax
Using % "," is about 5% faster than `, too.
Return to “Suggestions on Documentation Improvements”
Who is online
Users browsing this forum: No registered users and 6 guests