外觀
禁止使用 with 陳述式
with
with 陳述式可能會有問題,因為它會將物件的成員加入到目前的範圍中,使得無法判斷區塊內的變數實際上是指向什麼。
with (point) { r = Math.sqrt(x * x + y * y); // is r a member of point? }