|
|
|
|
|
by cabalamat
1755 days ago
|
|
> Another thing I wish JavaScript had kept was the "with" statement. Consider the following: with (a) {
with (b) {
with (c) {
d = e;
}
}
}
Does this mean:(1) a.b.c.d = e (2) d = a.b.c.e (3) something else (4) it's impossible to tell? Correct answer: (4) it's impossible to tell! One of the worst things about programming is looking at someone else's code (or worse, one's own code) and thinking "WTF did they mean by that?". And that's why I don't like the with statement. |
|