Re:Show HN: Imba – I have spent 7 years creating a programmi...
by Shorel on Tuesday August 17, 2021 @09:52PM
(#28216942)
Spanish native here. I would never read it like that.
I have programmed in a couple languages where every single keyword was in Spanish: Logo and some flavours of Visual Basic.
Either everything is in English, or everything is in Spanish. There's no middle ground with mixed keywords.
'Var' and 'def' both sound good to me.
Re:Show HN: Imba – I have spent 7 years creating a programmi...
by Zababa on Tuesday August 17, 2021 @09:51AM
(#28209831)
> It also works as a double entendre-- "con" in Spanish means "with".
Triple even! In French it's the equivalent of "cunt".
Re:Show HN: Imba – I have spent 7 years creating a programmi...
by CRConrad on Wednesday August 18, 2021 @05:29PM
(#28227423)
And in English, to go full circle, a con is what a con man pulls; a confidence trick.
Hey BTW, is a JS "const" really constant, or can it (like in some other languages) be changed after all? Because if it can, then it isn't really const but more of a con...
Re:Show HN: Imba – I have spent 7 years creating a programmi...
by Zababa on Thursday August 19, 2021 @09:37AM
(#28233655)
> Hey BTW, is a JS "const" really constant, or can it (like in some other languages) be changed after all? Because if it can, then it isn't really const but more of a con...
It's constant for things like numbers, but if you declare an array const, the only const things is the reference, the array can still mutate. con might be a good name for that.
If I had my druthers, I think I would choose "var" and "def" to declare mutable and immutable variables, respectively.
Edit: After thinking about it some more, I think I prefer "const" over "con", but "def" over both.