JD wrote:
I would like a feature to somehow simplify this kind of syntax so it's more traditional.
No single syntax would be appropriate in all contexts. What is "traditional" is also subjective. What do you suggest?
Any script that uses
A:=% B or
A=% B should be changed... or deleted. It is only possible because assignments are treated as a command with two arguments, and % is used to force an argument to be treated as an expression. Additionally, using % with := is meaningless. In fact, the following will cause a load-time error:
Code:
x := % y, n := 1
An often-cited link is
FAQ: When exactly are variable names enclosed in percent signs?Quote:
I it's taking me FOREVER to figure out the syntax.
FYI, there is a section for "Language Syntax" in the FAQ...