Talk:Comparison of C Sharp and Java: Difference between revisions

Content deleted Content added
Tbjablin (talk | contribs)
Tbjablin (talk | contribs)
Line 129:
:What do you understand by "method invocation ''model''"? Is it compile-time or run-time? If you say compile-time, I agree, the same syntax/grammar is used to call a delegate and to call a single method. If you say run-time, I disagree, because by then it will either iterate the delegate OR call the method, it won't decide which to do at run-time because that's already hard-coded. So, you MUST clear which do you mean, compile-time or run-time. I suggest renaming it to "method invocation syntax", assuming compile-time since in run-time it's nonsense to say it's simpler in Java.
 
::Did you read the link at the bottom of the discussion? [[http://blog.monstuff.com/archives/000037.html#more]] The author has evidence that delegates use relfection implicitly, and that they are not simply pointers to functions. If you can produce some disassembly that disagrees with his results, or can explain his results, I would be very interested.
 
--In that case, delegates don't ''complicate'' the model, they ''expand'' the model. One can completely ignore delegates and still be a quite succesful coder in C#. I think it gives a false impression that C# is more difficult to learn than Java. While it will certainly take you longer to learn ''completely'' (since there are more language-level features in C#), base functionality in both languages is a nearly identical task.
Line 140:
--capn_midnight
 
I think the criticism is that determining which method is actually called at run-time more complicated, and can incur a performance hit. Check this out [[http://blog.monstuff.com/archives/000037.html#more]], but I guess all OO features are more complicated than just calling static function. [[User:Tbjablin|Tbjablin]] 13:16, 25 Apr 2005 (UTC)
 
== Switching Strings ==