What language should I use?
-
But neither VB 6.0 nor VB .NET weren't designed to mimic assembler. (I think so) Anyway, MSDN says (VB6):
MSDN wrote:
[Let Statement Let --- Optional. Explicit use of the Let keyword is a matter of style, but it is usually omitted.
Greetings - Jacek
BASIC has been around since 1964. In those days, language interpreters were pretty rigid: computers simply did not have the processing power or memory to be very flexible. It was not until much later that
LET
became optional; it was retained for backwards compatibility and because some programmers liked to use it to help document an assignment rather than a comparison. -
The following BeFunge code generates the first 100 digits of PI:
aa* v +------------------------+
vp*9920p*9930< | Pi generator in Bef-97 |:09a*pa*3/1+19a*p09a*g:09b*v | |
v_@# g*b90 p*b910 < p< | 7/2/1997, Kevin Vigor |
19a*g:+1-29b*p19a*g::09v +------------------------+
v*a90g*b90*g*b91: _v#p*9<
g-#v_ 2a*+\$ v :$
\1-aa*ga*+v p
v1:/g*b92p*991:< *
9b*p29b*g*199*g\v9
v*b92p*aa-1g*990-<9
g2-29b*p099*g1-:0^
v -9p*b92:%ag*991 <
#v_ 299*g1+299*p> ^
09b*g:#v_$v
v93p*b90-1<
9*g199*ga/+.v
v:g*992 <p*9 92-<
v_29b*g399*p ^
09b*g:#v_v 1
vp*b90-1 < $ g
199*g9`#v_'9,v *
'0, >' ,299^Huh?!
Greetings - Jacek
-
Very hard to beat Brainfuck. :-D http://en.wikipedia.org/wiki/Brainfuck[^]
-
LET was supported in VB 6.0, wasn't it[^]? In VB .NET it is still a keyword but isn't used anymore :doh: .
Greetings - Jacek
Its even more weird with VBA now, where object variables have to be used with SET:
Dim something as Sheet Set something = Sheets("blah")
The "compiler" will complain if the SET is omitted... LET... SET.. and then nothing. What evolution :D BTW my first and always mantra for VBA: put an OPTION EXPLICIT in front of every file! :)