A prime example being VS Code
I have been using Dim for Arrays and Var for variables too! It just makes sense to me. Not that it makes any real difference functionally. But I just donāt think of allocating an integer, long etc. as āDimensioningā whereas I think it fits very well when allocating space for an array.
I find such thing just a kind of bureaucracy, to my eyes it will look like as if someone started a code update and did not finish it.
DIM really looks like 80ās content to me, from a ZX81 or TRS-80.
Iāve been using our favorite language since it was called CrossBasic. I see no point using Var when good old Dim works fine⦠Doesnāt mean I donāt use API2. Just that muscle memory takes over when declaring variablesā¦
I was just trying to make the point that using Var instead of Dim would be an easy way for humans and AIās to understand that the code was API 2.
ā¦and Slack, Discord, Spotify and many more using Chromiumās V8 JIT compiler ![]()
For me, for reasons I canāt explain, my brain made the switch to var effectively instantly. I never write dim anymore. It feels kind of like Iām writing deprecated code. Logically, I know it makes no difference, but in the moment, using dim feels like Iām doing a bad thing.
Whatās also interesting is the only other language I (often) use that uses declaration keywords is JavaScript. But in JavaScript, var is the ābadā one. Only in very rare circumstances do I want to declare a global variable. Itās usually const, sometimes let.