3 ms·
Would it be possible to mimick dynamic types just be renaming subsequent references? E.g. foo = "test string" print(foo) foo = 5 print(foo) W
by Ciantic 5y ago
Would it be possible to mimick dynamic types just be renaming subsequent references?
E.g.
foo = "test string"
print(foo)
foo = 5
print(foo)
Would compile as:
foo = "test string"
print(foo)
foo__1 = 5
print(foo__1)
I don't know if the syntax is correct, but hope my point goes thru.
- tgv 5y agoAWK variables are global; only parameters are local. So there should be just one "foo" in the global scope in your example.