Re:The .NET Language Strategy
by WayneBro on Thursday February 02, 2017 @10:33AM
(#13551171)
You don't write your type twice in C# either. So, the second example would be:
`Dim` is worse than `var` because nobody uses the word "Dimension" when they're talking about variables.
[ Parent
| on HN ]
As I said, var was introduced with type inference. Before type inference you had to declare it twice, which you never had to do in VB, even in VB6.
Right, but it was introduced to C# over 8 years ago so it's a bit of a moot point, wouldn't you say?
`Dim`, a poorly worded keyword by today's standards, is a perfect example of the kind of leftover crap that C# doesn't have today that VB still does have.
Re:The .NET Language Strategy
by smoothdeveloper on Thursday February 02, 2017 @02:15PM
(#13553547)
Try defining an instance member with var in C#