|
Uhhhh, no?
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Sometimes, IMHO, it is... (Javascript strong typing is a crap; eveyone here will disagree, I know, but I don't bother about...).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I'm waiting for strongly typed JS. Bring on the code complete!
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Then you don't need to wait anymore. They [^] have already done it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Doesn't look like it's cross platform.
:S
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
You cry for the moon!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
A severed foot is the ultimate stocking stuffer.
- Mitch Hedberg
|
|
|
|
|
Tom Welch wrote: "Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
"All things strings can become, code that way why not should we, hmmmmmmmmmmmmmmmmmmm?"
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Tom Welch wrote: it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean
|
|
|
|
|
There's no such thing as strong typing. It's all just a bunch of 1s and 0s.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: There's no such thing as strong typing. It's all just a bunch of 1s and 0s.
Blah blah blah...Im really old...blah blah blah...mainframe mainframe mainframe...
-- modified at 8:50 Monday 7th May, 2007
Wow I marked it as a joke...
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Wrong! Unless you are talking about how hard you hit the keys on your keyboard.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Errm - I'm not sure if you are being subtly ironic here, or you missed the joke icon on my post. I'll give you the benefit of the doubt and go with subtly ironic.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
My boss is pretty hard on his keyboard. (Must be compensation.)
|
|
|
|
|
What are you talking about?
If you are talking about variable type checking in C++, then you are wrong. I wish C was as tight with its type checking. Then again I wish C would allow me to declare a variable where ever I wanted too, instead of forcing me to create a new scope.
P.S. I liked C, but I love C++.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
John R. Shaw wrote: What are you talking about?
I am not sure either...
|
|
|
|
|
John R. Shaw wrote: Then again I wish C would allow me to declare a variable where ever I wanted
I prefer to have all the declarations in one place (the top) so in C# I still do that by choice.
But requiring such isn't very friendly, flexibility is good.
|
|
|
|
|
PIEBALDconsult wrote: I prefer to have all the declarations in one place (the top) so in C# I still do that by choice.
Same here, sure beats having to browse through the code looking for the declarations...
|
|
|
|
|
Paul Conrad wrote: browse through the code
But you did know about the existence of the CTRL-F feature of your editor? Or (with any modern IDE) even the context menus 'Go to Declaration' feature?
Failure is not an option - it's built right in.
|
|
|
|
|
But then you have to go back to where you were. Sure you could take note of the position but it would still be annoying.
|
|
|
|
|
Those points that are the hotspots of my current working are CTRL-F2-bookmarked anyway.
And if I only want to know the type of a variable, Intellisense would open that little tooltip for me.
I all boils down to being simply personal style, I guess.
Failure is not an option - it's built right in.
|
|
|
|
|
I would agree.
I consider it good form to reduce as much as possible the scope of a variable. I do not want the IDE suggesting local variables that should not be used at that point.
Paul
|
|
|
|
|
in the old vb6 days ctrl-f2 used to take you to a definition and ctrl-shift-f2 used to take you back to where you were before.
I'm sure this must be implemented in .net but i've never found out how to do it. I used to use it all the time.
Russ
|
|
|
|
|
I agree requiring such is not varying friendly, and is a real pain int the <blank>.
Here are some thoughts to consider when writing you code.:
1) In C you can wrap a variable declaration in a scope and if that scope is not entered then no space is allocated on the stack for it (saves cycles and memory). This applies to languages other than C, including C#.
2) In C++ you can wrap a class (variable) declaration in a scope and if that scope is not entered then the constructor and destructor are not called.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
PIEBALDconsult wrote: I prefer to have all the declarations in one place (the top) so in C# I still do that by choice.
I hate that. Although it probably doesn't help that most of the functions i see doing it are hundreds of lines long, making it a real chore to track down declarations and ensure variables are being used correctly.
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|