pre wrote:This to mee seems like its getting a little ridiculous with the intellisense. Is it really necessary to have intellisense pop up for Dim and As? I see this as overkill. Is there a way to turn off intellisense for keywords?
I'm also not sure I'm too happy with the lack of needing type declarations for variables. What happens when OptionStrict is off, is the type still implied? Its hard enough working on team projects and keeping track of other developers variables but adding on top of that a feature that negates the need for a type is going to make that process even harder. Hopefully that can be turned off as well.
Option Infer is the option that controls whether or not a type is inferred. Option Strict is independent. Here's a chart to describe how the following line will behave given the various Option combinations:
Dim x = 10
Option Strict Off, Type Inference On -> x is an Integer
Option Strict Off, Type Inference Off -> x is an Object
Option Strict On, Type Inference On -> x is an Integer
Option Strict On, Type Inference Off-> Error: "Option Strict On requires all variable declarations to have an 'As' clause."