TWX Proxy - Asignment Operators

ok, since no one requested anything, I worked on one of my own requests:

TWX doesn't have an assignment operator, well is has:

... but wouldn't it be nice if you could use ":=" instead?

ok, I still want to put a ; at the end of that, but isn't that a lot easier to read?

and wouldn't it be nice if you could use "*=", "/=", "+=", "-=", "++", and "--" operators like this:

**Code:**

$dogs := 11

While $birds < 5

$birds++

$mice += 2 * $birds

$dogs -= 2

echo "Your cats ate " $birds " birds and " $mice " mice, and chased " $dogs " dogs*"

end

$dogs := 5

$cats := 1

while $dogs > 0

$feline := $cats * 100

$feline /= $cats + $dogs

echo "You Have " $dogs " Dogs and " $cats " Cats, which is " $feline "% feline*"

$Dogs--

$cats *= 2

end

Well, i just finished writing this feature, and here is the output of the above script:

**Code:**

Your cats ate 1 birds and 2 mice, and chased 9 dogs

Your cats ate 2 birds and 6 mice, and chased 7 dogs

Your cats ate 3 birds and 12 mice, and chased 5 dogs

Your cats ate 4 birds and 20 mice, and chased 3 dogs

Your cats ate 5 birds and 30 mice, and chased 1 dogs

You Have 5 Dogs and 1 Cats, which is 16% feline

You Have 4 Dogs and 2 Cats, which is 33% feline

You Have 3 Dogs and 4 Cats, which is 57% feline

You Have 2 Dogs and 8 Cats, which is 80% feline

You Have 1 Dogs and 16 Cats, which is 94% feline

I think I managed to get all 7 new mathematical operators in there, and used a few of the old operators that most people forget were added in TWX 2.0. It is just a bit of compiler fakery, as it is still using setvar, add, multiple, etc... internally... but I think it is so much easier to read when using assignment operators instead of functions. don't you?