Click here to Skip to main content
16,009,643 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 2:14
protectorChristian Graus22-Jul-02 2:14 
AnswerRe: C# - language design by committee ??? Pin
Nish Nishant21-Jul-02 15:49
sitebuilderNish Nishant21-Jul-02 15:49 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 15:57
protectorChristian Graus21-Jul-02 15:57 
GeneralRe: C# - language design by committee ??? Pin
Andy Smith21-Jul-02 17:07
Andy Smith21-Jul-02 17:07 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 17:14
protectorChristian Graus21-Jul-02 17:14 
GeneralRe: C# - language design by committee ??? Pin
Nish Nishant21-Jul-02 17:12
sitebuilderNish Nishant21-Jul-02 17:12 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 17:19
protectorChristian Graus21-Jul-02 17:19 
GeneralRe: C# - language design by committee ??? Pin
James T. Johnson21-Jul-02 18:01
James T. Johnson21-Jul-02 18:01 
Christian Graus wrote:
I'll settle for one good reason that an instance of a class cannot know about methods that exist once and once only for all instances of that class.

Its not that they don't know about them; but why make it look like you are making an instance method call when it is a static method call?

Christian Graus wrote:
In C#, a static that is also private is invisible to EVERYONE.

No it isn't, it is visible to that class

class Foo {
  private static int bar = 0;
  private static void IncBar()
  {
    bar++;
  }
 
  public void DoSomething()
  {
    Foo.IncBar();
    Foo.bar++;
  }
}
Compiles just fine.

Now I'm going to throw something out which I've told many people before. No matter the language I've always heard complaints about it not having feature x from language y. This isn't language y, if you keep going back to wanting it to be language y you are are just going to infuriate yourself because it isn't. I've now said it for 3 languages (FORTRAN, Java, and C#) and its been true in every one of those cases.

Christian Graus wrote:
It is simply counterintuitive, if a method I am writing can be written as static, for my users to have to type in the name of the class instead of the name of a class instance.

How is it counterintuitive? The method doesn't belong to an instance of the class, I think it is counterintuitive to code a static method call like it was an instance method.

All of the critics have lambasted VB for doing too many things for the developer on the language level, making them lazy. Oddly enough C++ does the same things but no one says a thing! While we were working on the screensaver I think it is safe to say your biggest complaint was that you had to cast everything. Now we have a framework where a bad cast isn't going to ruin anything because the cast will throw an exception if it can't be made. I see that as a good thing. In fact it is close to the dynamic_cast of C++, a better match would be the as statement

IMO it is BAD to not be explicit about what you are doing. Anyone with experience coming from VB will know the problems caused by not being explicit. Maybe its time the VB people teach the C++ people a thing or two Roll eyes | :rolleyes: .

BTW, if I sound mad its not because of you nor anyone else from CP. My dad is insisting on opening up some security problems on our webserver, but since he pays the bill for it I have no say in the matter. That and he is completely unorganized so the root directory looks like crap Dead | X|

James
"Java is free - and worth every penny." - Christian Graus
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 18:18
protectorChristian Graus21-Jul-02 18:18 
GeneralRe: C# - language design by committee ??? Pin
James T. Johnson21-Jul-02 18:54
James T. Johnson21-Jul-02 18:54 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 19:04
protectorChristian Graus21-Jul-02 19:04 
GeneralRe: C# - language design by committee ??? Pin
James T. Johnson21-Jul-02 20:14
James T. Johnson21-Jul-02 20:14 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 20:33
protectorChristian Graus21-Jul-02 20:33 
GeneralRe: C# - language design by committee ??? Pin
James T. Johnson21-Jul-02 21:12
James T. Johnson21-Jul-02 21:12 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:08
protectorChristian Graus22-Jul-02 12:08 
GeneralRe: C# - language design by committee ??? Pin
Gerald Schwab22-Jul-02 17:28
Gerald Schwab22-Jul-02 17:28 
GeneralRe: C# - language design by committee ??? Pin
Kevin McFarlane22-Jul-02 9:49
Kevin McFarlane22-Jul-02 9:49 
GeneralRe: C# - language design by committee ??? Pin
Eric Gunnerson (msft)22-Jul-02 6:40
Eric Gunnerson (msft)22-Jul-02 6:40 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:09
protectorChristian Graus22-Jul-02 12:09 
GeneralRe: C# - language design by committee ??? Pin
Andy Smith21-Jul-02 18:06
Andy Smith21-Jul-02 18:06 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 18:09
protectorChristian Graus21-Jul-02 18:09 
GeneralRe: C# - language design by committee ??? Pin
jparsons22-Jul-02 5:28
jparsons22-Jul-02 5:28 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:10
protectorChristian Graus22-Jul-02 12:10 
GeneralRe: C# - language design by committee ??? Pin
Rama Krishna Vavilala22-Jul-02 5:41
Rama Krishna Vavilala22-Jul-02 5:41 
GeneralRe: C# - language design by committee ??? Pin
jparsons22-Jul-02 6:49
jparsons22-Jul-02 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.