Hacker News new | ask | show | jobs
by m00g00 3008 days ago
Which is awfully similar to JavaScript's much maligned 'with' statement.

Never understood the FUD and 'considered harmful' screeds against it. Yes I'm aware of the performance/optimization concerns, but honestly, the whole javascript language is a massive performance/optimization concern and we've managed pretty well.

Simple things like changing style properties on DOM elements:

   with(element.style) {
       display = "block";
       marginLeft = "5px";
       background = "green";
   }
And of course with 'with', everything is a fluid interface, and with the flexibility of being able to enter code between the function calls.