Jump to content


[v2] var := for variable removal


  • Please log in to reply
No replies to this topic

#1 Guests

  • Guests

Posted 28 September 2011 - 07:29 AM

Currently in v1 there are no differences between := "" and := Although I heard the latter becomes invalid code in v2, I have a suggestion of using it.
var := "some value"
var := ""
;this does the same in v1.
var :=
So what about the ability to eliminate created variables and to use := for it? It can be used for object members as the same functionality to the Remove() method as well.

This removes the variable, var from the variable list, which can be viewed in the Variable and their contents window (Control + v),
var := "some value"
var :=
In the same sense,
Obj := {a: "aaa", b: "bbb", c: "ccc"}
Obj.b := 
;same as
Obj.Remove("b")
The only concern I have is that it could be confusing for new users like the traditional vs expressions. What do you think?