The Artima Developer Community
Sponsored Link

Java Buzz Forum
Nullable Types in C#

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael Cote

Posts: 10306
Nickname: bushwald
Registered: May, 2003

Cote is a programmer in Austin, Texas.
Nullable Types in C# Posted: Jun 11, 2004 8:11 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Michael Cote.
Original Post: Nullable Types in C#
Feed Title: Cote's Weblog: Coding, Austin, etc.
Feed URL: https://cote.io/feed/
Feed Description: Using Java to get to the ideal state.
Latest Java Buzz Posts
Latest Java Buzz Posts by Michael Cote
Latest Posts From Cote's Weblog: Coding, Austin, etc.

Advertisement

The author of the RSS reader I use at work (Bloglines don't worky behind the firewall), has an interesting pointed about (Non)Nullable Types in C# 2.0. From my 10 second skimming it looks pretty interesting:

This new C# feature will allow one to specify a Type like int? which will act just like a regular int, with the exception that it can now also be null.

I'm sure there's more utility to it, but the first nice thing seems to be that -1 (or whatever) would no longer be "equal" to null for numeric primitives.

I remember when C# first came out I saw two IT-dressed (of the khakis and long sleeve shirts tucked in) people in a Starbuck's, in Houston, reading the O'Reilly book on the topic. (Wow, that book is now in it's 3rd edition.) I'm sure there's lots of C# chatter around, but since I'm pretty much neck-deep in Java, the only mentions I really encounter are in Fowler's recent book, and the occasional stumble upon like the above.

Read: Nullable Types in C#

Topic: CVS for dummies Previous Topic   Next Topic Topic: Cog: language-neutral code generator

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use