is there any programming language that can catch an undeclared variable?
how can a program do something with a variable that is unknown? it could be a string, it could be a integer, a map, a list, a view,... so why should it work?
sample how it should look:
Sub catch_me(x As Int)
Dim l As List
l.Initialize
Select x
Case 0
Dim new_x As Int = x*25
l.Add(new_x)
Case 1
Dim new_x As Int = x/8
l.Add(new_x*2)
Case Else
l.Clear
End Select
'do here something with l
End Sub