I am proceeding with caution, but here are a few neat features that would be
nice in Java land (I know there are gotcha's out there and have read up on
them).

Properties:

   Properties can be made readonly or add additional verification logic while
   keeping things syntactically clean.  For example:

   // Read Only
   public string Name
   {
       get
       {
           return m_name;
       }
   }

   // Additional Logic
   public Sink CommandSink
   {
       get
       {
           return m_sink;
       }
       set( Sink other )
       {
           if (other == null) throw new ArgumentNullException();

           m_sink = other;
       }
   }

Attributes:

   It is so much nicer when there is built in language support for the
   attributes.  It makes it easier to collect, and implementations are
   far more flexible.  The NUnit test framework is proof of this in action.
   It can do everything JUnit can do, without forcing a class inheritance
   hierarchy.  It's so much easier to work with.

Assemblies:

    Assemblies just work.  There's nothing magic about it, they just do their
    jobs.  All we have to do is add a reference to the assembly file (.exe or
    .dll) and the framework takes care of building the new assembly file.  The
    framework will load up the dependencies at run time.



There is one thing I don't like, which is how the "NDocs" are done (AKA .NET
equiv. of JavaDocs).  The "///" notation and forcing you to add XML tags
to the docs is quite ugly, and not too easy on the eyes.  The JavaDocs solution
is so much clearer when you are just working with the code.  That said, the
NDocs validation is much much better, and it forces you to write the docs which
is tres kool.

I haven't gotten into anything deep yet, but as I do I will be sharing my
experiences--we can learn from it for the Java version.

--

"They that give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."
                - Benjamin Franklin



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to