Originally posted in #610, moved here to discuss this issue specifically:
Dim array(1 To 2, 1 To 5) As Integer => {{1, 2, 3, 4, 5}, {1, 2, 3, 4, 5}}
Type mytype
var1 As Double
var2 As Integer
End Type
Dim myvar(0 To 2) As mytype => {(1.0, 1), (2.0, 2)}
Originally posted by @XusinboyBekchanov in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1967286
Blasphemy!
The curly brackets syntax is "stolen" from .Net frenemy and looks too much like C/C++ :-))
Originally posted by @wqweto in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1967531
yeah. that is not how we should do it. it need to be "intuitive"
I would try to use what we already have:
Dim Array(1 to 2, 1 to 5) As Integer = 1, 2, 3, 4, 5 and 1, 2, 3, 4, 5
Dim Array(1 to 2, 1 to 5) As String = "A", "B", "C", "D", "E" next "Z", "Y", "X", "W", "V"
Dim Array(1 to 2, 1 to 5) As Long = 16, 77, , 1 and 6, , , , 1
Dim Array(0 to 2) as MyType = 1, 5 and "Hello", 5 and Name:="Wayne"
Originally posted by @vbBaka in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1967684
Blasphemy!
The curly brackets syntax is "stolen" from .Net frenemy and looks too much like C/C++ :-))
They are just mathematical symbols. You also studied at school according to these symbols of the system.
Originally posted by @XusinboyBekchanov in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1968215
Originally posted in #610, moved here to discuss this issue specifically:
Originally posted by @XusinboyBekchanov in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1967286
Blasphemy!
The curly brackets syntax is "stolen" from .Net frenemy and looks too much like C/C++ :-))
Originally posted by @wqweto in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1967531
yeah. that is not how we should do it. it need to be "intuitive"
I would try to use what we already have:
Dim Array(1 to 2, 1 to 5) As Integer = 1, 2, 3, 4, 5 and 1, 2, 3, 4, 5
Dim Array(1 to 2, 1 to 5) As String = "A", "B", "C", "D", "E" next "Z", "Y", "X", "W", "V"
Dim Array(1 to 2, 1 to 5) As Long = 16, 77, , 1 and 6, , , , 1
Dim Array(0 to 2) as MyType = 1, 5 and "Hello", 5 and Name:="Wayne"
Originally posted by @vbBaka in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1967684
They are just mathematical symbols. You also studied at school according to these symbols of the system.
Originally posted by @XusinboyBekchanov in https://github.com/WaynePhillipsEA/twinbasic/discussions/610#discussioncomment-1968215