Re: String literals in Java

From: Chris Smith (cdsmith_at_twu.net)
Date: 05/29/04


Date: Fri, 28 May 2004 19:39:19 -0600

Harri Pesonen wrote:
> C# and .NET platform have been designed to have the best features from
> Java, without the burden of deprecated API or language features. Java
> 1.5 proves that C# is/was ahead of Java in many ways.

Yes, you're right that C# is/was ahead of Java in many ways. It was
just the ludicrous extension of that as a way to prove that *everything*
in C# is better than Java that was ridiculous. We all understand by now
that you like these "literal" strings from C#. (At least, those of us
who aren't completely oblivious do...). I, on the other hand, consider
them an incomplete attempt to complicate the language so as to avoid a
relatively painless problem. And yes, I do JDBC programming with SQL
strings all the time.

> I could go on, but C# is simply superior to Java (in Win32). I hope that
> Java gets better, Java 1.5 sounds very promising.

It's really not that simple. Specifically, C# suffers from the
disadvantage that it's really a rather complex language with a lot more
gotchas to look out for than Java; a lot more situations where it's
rather non-obvious what's going on. It represents a language that's a
lot heavier on the syntactic sugar than Java is. Essentially, it comes
from a considerably different language design philosophy.

Hopefully, Java 1.5 takes those genuinely good ideas from C# that are
really compatible with its language design, but still remains its own
language with its own advantages. It looks like that balance is largely
happening (although I'd be pushing for leaving out a few more things
like the new for loop syntax and static imports). Obviously, some
people in charge have more of a vision for what Java should be than
simply trying to make it as much like C# as possible.

-- 
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation


Relevant Pages

  • Re: VS2005 and VS 6.0
    ... You can write a buggy program in any language. ... The delayed destructors are definitely a problem, Java has the same problem. ... design to improve performance and reliability. ... environment by stupid errors. ...
    (microsoft.public.vc.mfc)
  • Re: What Free Tools to use in Java (New to Java)
    ... > have worked with many of the people who wrote some of the popular Java ... had email help and even a free book from some of the authors in that list I ... comp.object is a good group to post design questions to. ... At the end of the day a language generally has some finite "ways" of doing ...
    (comp.lang.java.help)
  • Re: C History (was: null terminated strings)
    ... Java again, this time as a server language. ... Microsoft Transaction Server and convince everyone to pretend they ... created the design. ...
    (comp.os.vms)
  • Re: Comparing Lisp conditions to Java Exceptions
    ... All the ISO standards in the world will not make the world ... Nothing keeps you from annotating your program with exceptions based on what ... language should adhere to your theory. ... Curiously, although you don't say it, Java has the opposite problem. ...
    (comp.lang.lisp)
  • Re: Searching OO Associations with RDBMS Persistence Models
    ... These rules provide consistency in design, ... triggers and some embedded language quite limited. ... should be *forced* on developers that sets me off. ... I think it is just because he feels that java is ...
    (comp.object)