Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Thursday May 09, 2002
07:52 AM

C# - Initial impressions

[ #4786 ]
For better or for worse I've decided to join the revenue assurance project and dig into C#. I'm at the tail end of online lesson 2 (of 5). The online lessons aren't bad, actually.

Well, anyway, here are my initial impressions:

  • It feels like a cross between C and Java, but closer to C.
  • The syntax is fairly easy, being very C-like, with the addition of a few new types (string).
  • Absolutely everything is a class and all methods are attached to a class. No global methods. Ok, I can live with that.
  • Some quirky semantic choices have been made. Your "two-dimensional array" is now a "rank two array". Uh, ok - whatever.
  • It still has that redundant feel that static languages give you. e.g. "ArrayList array = new ArrayList;". I feel like I'm declaring the type twice here, but that's a statically typed language for you.
  • The ability to use /// for inline XML documentation is nifty. Of course, if/when XML becomes a thing of the past, this feature will probably be mocked for some time.
  • They've added onto some traditional constructs. In addition to 'try/catch/throw', they've added 'finally'. This may be useful. Then again, it may be kruft.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • The ability to use /// for inline XML documentation is nifty.

    I'm about as skeptical about this one as I was two years ago when it was first announced.

    Consider XML as a reasonable default syntax, much like the GPL is a reasonable default license (if you intend all users of your software to be on an even playing field). That's default, not universal. Over the years, I've found that the mindset when I'm writing a document (in XML, LaTeX, Pod, HTML, whatever), is different than the mindset when I'm pro

    • I think a more universal literate programming [literateprogramming.com] system is needed.

      All the existing ones tend to have some problem with some aspect (typically they're too tied to a particular language for either the doco part of the code part).
      --
        ---ict / Spoon