Hi David,

Actually I tend to agree with you on that to some extent. I do like the
narrower scope that the dynamic keyword offers, and I do like some of the
other features like overloading methods with optional parameters (has been
on my long time request list for VB to allow for smoother versioning).
That said, I think C# has been a decade late in coming to the party, and
it's about time the party got out of the disco era ;) 
We've got some really cool things like embedded interop classes (guess that
means technically they are no longer PIA's <g>), but we're still writing
unverified code at design time that we know isn't going to change: the
problem is the metadata isn't presented at design time.  This impedance
mismatch, such as exposing so many COM  properties as Object due to the old
IDispatch etc, is just screaming for a better interaction with managed code,
be it metadata assemblies, duck typing/ pseudo interfaces etc.  

If we know enough at design time to write the member name in code yet
intellisense can't guide us on that, and we are forced to forego any
compiler checking on naming, types etc, then really the IDE and tooling has
failed in its job. Dynamic in C# is great, be it ten years late, but it's a
distraction from addressing the real issues, IMO .



|-----Original Message-----
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of David Kean
|Sent: Tuesday, 4 October 2011 12:35 PM
|To: ozDotNet
|Subject: RE: In praise of DirectoryInfo Framework 4
|
|While I like C#'s dynamic better than VB's (although I'm sure if Bill's
still floating
|around he'll argue differently) - VB actually supported 'dynamic' from day
1 . J
|
|
|
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of Ian Thomas
|Sent: Monday, October 03, 2011 6:15 PM
|To: 'ozDotNet'
|Subject: RE: In praise of DirectoryInfo Framework 4
|
|
|
|You are right of course, David.
|
|Strange that this page <http://msdn.microsoft.com/en-
|us/library/system.io.directoryinfo.enumeratedirectories(VS.90).aspx>
exists,
|more than a year after its last edit date . obviously it is a problem with
the MSDN
|doco since the .enumeratedirectory (etc) doesn't work with v3.5 target.
|
|I have been using v4.0 for all disk file traversing, and for the Dynamic
keyword in
|C# 4.0 - I think this will be in Visual Basic too, when the v4.5 Framework
is
|released.
|
|
|
|________________________________
|
|Ian Thomas
|Victoria Park, Western Australia
|
|________________________________
|
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of David Kean
|Sent: Monday, October 03, 2011 11:00 AM
|To: ozDotNet
|Subject: RE: In praise of DirectoryInfo Framework 4
|
|
|
|Pretty sure we added the EnumerateXXX in 4.0, not 3.5.
|
|
|
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of Ian Thomas
|Sent: Sunday, October 02, 2011 7:56 PM
|To: 'ozDotNet'
|Subject: RE: In praise of DirectoryInfo Framework 4
|
|
|
|There's always a What's New <http://msdn.microsoft.com/en-
|us/library/ms171868.aspx>  when a new Framework version is released. And, I
|was correct - those (originally-cited) methods were in v3.5. But the
.TryParse
|additions I had not seen.


Reply via email to