Javascript 'with' keyword
-
I feel like I've just found a new door in my house that I never knew was there. And inside is a whole bunch of VB. It's weird. I just found out about the javascript
with
keyword. How did I miss it? Was I intentially blanking it out? Weird.cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
-
I feel like I've just found a new door in my house that I never knew was there. And inside is a whole bunch of VB. It's weird. I just found out about the javascript
with
keyword. How did I miss it? Was I intentially blanking it out? Weird.cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
-
I feel like I've just found a new door in my house that I never knew was there. And inside is a whole bunch of VB. It's weird. I just found out about the javascript
with
keyword. How did I miss it? Was I intentially blanking it out? Weird.cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
I used to use the 'with statement' quite a lot when I did most of my stuff in Delphi, where they could be nested too. When I moved to C# I missed it at first, but then I had to re-visit some of my old Delphi stuff and realised how difficult it was to understand the deeply nested stuff. So whilst I'm sure that you do :-D , use lots of comments if you decide the nested route is the way to go.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
I used to use the 'with statement' quite a lot when I did most of my stuff in Delphi, where they could be nested too. When I moved to C# I missed it at first, but then I had to re-visit some of my old Delphi stuff and realised how difficult it was to understand the deeply nested stuff. So whilst I'm sure that you do :-D , use lots of comments if you decide the nested route is the way to go.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
Pascal, Delphi, VB - I've used them in all these languages. But to see it in Javascript... It's like being a kid and walking in on your Mum and Dad when they were having some "quite time". Ewww!
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
-
Pascal, Delphi, VB - I've used them in all these languages. But to see it in Javascript... It's like being a kid and walking in on your Mum and Dad when they were having some "quite time". Ewww!
cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
Chris Maunder wrote:
It's like being a kid and walking in on your Mum and Dad when they were having some "quite time".
Didn't they know about butter? :-D
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
I feel like I've just found a new door in my house that I never knew was there. And inside is a whole bunch of VB. It's weird. I just found out about the javascript
with
keyword. How did I miss it? Was I intentially blanking it out? Weird.cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
-
I feel like I've just found a new door in my house that I never knew was there. And inside is a whole bunch of VB. It's weird. I just found out about the javascript
with
keyword. How did I miss it? Was I intentially blanking it out? Weird.cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP
-
I've never understood why they didn't include
with
in C#. Considering how VBish C# seems, as an old C++ coder, I was surprised to find it missing. While there's plenty to bash in VB, thewith
keyword is pretty handy.QRZ? de WAØTTN
Yeah... in point of fact, I rather like the VB implementation of
With
(not that I use it all that often, but it's handy to have around every now and then). The Javascript design forwith
, though, is horrible. It has all the proverbial ugliness of VB, and more so. I mean, seriously! Who thought being able to reference members as though they were global variables was cool, anyway?