Re: [saxdotnet-devel] Re: Java SAX docs updated
Brought to you by:
jeffrafter,
kwaclaw
From: Karl W. <ka...@wa...> - 2004-12-20 19:27:30
|
Jeff Rafter wrote: >> In C# this seems less of an issue, as there are two >> other null-safe options: >> 1) static method: if (String.Equals(uri, "http://my.namespace.com")) >> {...} >> 2) operator: if (uri == "http://my.namespace.com") {...} > > > Admittedly this is pretty standard in C#, however it is plausible that > some Java coder will come to C# with limited training and just hack > away-- in which case they may not follow this pattern (or if someone is > porting a Java library for instance...) > > In any event it can go either way and I will code to it... but I believe > that it should be very very clearly documented if we do not go with > string.empty. If I get a vote I still vote for string.empty-- though > your arguments have made me less zealous. Would you vote for String.Empty in all cases, or just for namespace URIs and prefixes? The former would make us even less conformant with the Java specs. > OFFTOPIC: sorry I have been out of the discussion for the past two > weeks-- I have been doing a lot of unexpected business travel... You may have a few posts to reply to... :-) Karl |