Advertisement

Language Reflections

Started by July 28, 2000 05:37 PM
-1 comments, last by LeeIsMe 24 years, 4 months ago
I was reading some things about C# (from the gamedev news link), and I had to write some of my thoughts down. One thing I noticed in the C# introduction is that almost all of its features were identical to java''s. They got rid of multiple class heredity, and implemented interfaces. They got rid of extra class operators in favor of the ''.''. They forced everything into classes. Type safety and garbage collection were introduced, and pointers were removed. That is all the same as java. The biggest difference was under the compatibility section. Quoted from the article- "C# does not live in a closed world. It allows you access to different APIs...". It only said things about compatibility with other Microsoft technologies (COM, Ole, dlls, etc). Under the compatibility section there was not a word mentioned about unix, linux, beos, etc. One other thing I have noticed about C# and Java is that they dissallow a few too many things. A language should be simple to learn and easy to understand, but that doesn''t mean dumb it down. You can simplify, yet still leave in advanced options for the people who need to and know how to use them. I was working on a midi file reader in Java, and command bytes are unsigned, but bytes in Java are all signed, so I had to convert the bytes to ints to fit properly. I can see how pointers can cause problems, but taking away all custom memory management is unnecessary. Not being able to specify for example an array segment within another array, or cast memory can sometimes cause unnecessary inneficiencies (ie constructing a short from two signed bytes rather than just casting the memory to a short). There, I''m done complaining. Just think of all the programming I could have done instead. One more thing, No Flames Please. --Lee Mazurek-- http://3d.n3.net/

This topic is closed to new replies.

Advertisement