Hacker News new | past | comments | ask | show | jobs | submit login

The thread is here:

https://lists.gnu.org/archive/html/bug-gawk/2022-04/msg00025...

There is more around it. I had the idea in two other forms.

Initially I had a @param:<ident> syntax which indicated that the given variable is to be allocated in the parameter space (a local variable frame where function parameters go). This only worked inside functions.

Between that and @let was a @local thing.

The maintainer of GNU Awk is one of the two authors of the "Fork y Code Please", the other being the Bash guy:

https://www.skeeve.com/fork-my-code.html

So ...




> We are glad to receive input from our user community about:

> Suggestions for new features that:

> Cannot be accomplished using existing features in a straightforward way > Don't (too badly) break compatibility for existing code

So.. in theory your @let should qualify


I may end up renaming it let and hiding it in --posix mode.

GNU Awk has switch, which is an extension and not hidden by @.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: