Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Sun Jan 2 16:20:42 CST 2011
Dan -- C# syntax (IMO) is a natural for professional programmers' "thinking flow", it helps to think through and to program fluently, to define (and to scope) variables where they are really needed, ... Optional parameters can be simulated by using similarly named methods with different sets of parameters - just one approach... (Optional parameters were originally introduced in VB not because of their being so useful but because of VB/VBA syntax (and implementation) limitations - and as it happens they got popular, and helped "chiseled in stone" COM (/MS Office) interfaces to evolve in time - that was a forced solution IMO for COM/MS Office to survive in business applications world.... In C# 4.0 (AFAIU) optional parameters were introduced mainly to simplify MS Office Automation programming. I mean there is no that much need in optional parameters when one programs on C# or VB.NET without using MS Office Automation. Dynamic (late) binding was partially introduced in .NET 3.5 (C# 3.0) - 'var' data type - and now in C# 4.0 there exists a full dynamic binding - 'dynamic' data type (you can see it's application in 'Ded Moroz...' samples) but this dynamic data type is not because of Visual Basic(.NET) influence - it's a much more powerful than in VB(.NET) - and it reflects the nowadays mainstream tendency of extending usage of dynamic languages... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 3 ?????? 2011 ?. 0:27 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Moving to .Net (was Ded Moroz sends you ...) Hi Gustav, What was it about C# where you liked its syntax better than VB.Net? Especially coming from a VB6/Access background? Also - in C# prior to 2010 version, how did you work around not having optional parameters? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, January 02, 2011 3:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Moving to .Net (was Ded Moroz sends you ...) Hi Dan Don't know, but I did. And switched to C# to learn something new and because I didn't like the syntax of VB.NET. /gustav >>> df.waters at comcast.net 02-01-2011 19:48 >>> .. But how many VB6 or Access developers (who loved VB6 and/or Access) have moved to .Net? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com