@HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish • edit-214 hours agoWhy make it complicated?lemmy.mlimagemessage-square74fedilinkarrow-up1257arrow-down10file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1257arrow-down1imageWhy make it complicated?lemmy.ml@HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish • edit-214 hours agomessage-square74fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-square@bandwidthcrisis@lemmy.worldlinkfedilink6•14 hours agoBASIC uses (used?) it to declare variables. (I don’t know if earlier languages did.) Not that that’s a reason for other languages to copy it.
minus-square@HiddenLayer555@lemmy.mlOPlinkfedilinkEnglish8•edit-214 hours agoDoesn’t Basic use Dim a As String?
minus-square@dan@upvote.aulinkfedilink9•edit-213 hours agoOlder variants used DIM for arrays and LET for other variables. DIM was originally called that because it was setting the dimensions of the array. In modern BASIC variants, DIM has become a backronym: “declare in memory”.
minus-squaretisktisklinkfedilinkEnglish4•13 hours agoTIL Backronyms and cuil BASIC technicalities Much obliged all
minus-square@marcos@lemmy.worldlinkfedilink2•13 hours agoEven older variants required both a let to declare the variable and a dim to set its size. I remember a REDIM command, but I really can’t remember what basic it’s from.
minus-square@dan@upvote.aulinkfedilink2•12 hours agoThe first programming language I used was Visual Basic (both VBA in Excel, and VB3 then VB6). I think it used redim to resize arrays.
BASIC uses (used?) it to declare variables. (I don’t know if earlier languages did.)
Not that that’s a reason for other languages to copy it.
Doesn’t Basic use
Dim a As String
?Older variants used DIM for arrays and LET for other variables. DIM was originally called that because it was setting the dimensions of the array.
In modern BASIC variants, DIM has become a backronym: “declare in memory”.
TIL Backronyms and cuil BASIC technicalities Much obliged all
Even older variants required both a let to declare the variable and a dim to set its size.
I remember a
REDIM
command, but I really can’t remember what basic it’s from.The first programming language I used was Visual Basic (both VBA in Excel, and VB3 then VB6). I think it used redim to resize arrays.