I am looking to put a proposal to VB to get some pattern support that fits within the guidelines of what enhancements VB language can get. The first is the declaration pattern. To address the patterns below
Select Case x Case TypeOf x is Something Dim y as Something = x Case TypeOf x is SomethingElse Dim z as SomethingElse = x End Select If TypeOf x is Something then Dim y as Something = x End if
What I need to complete it is a VB like syntax that works for both and is extensible. If should be clear for any programmer that can read VB what is happening.