𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟 to Programmer [email protected] • 1 year agoi++programming.devimagemessage-square11arrow-up146arrow-down11
arrow-up145arrow-down1imagei++programming.dev𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟 to Programmer [email protected] • 1 year agomessage-square11
minus-square@[email protected]linkfedilink0•1 year agoIn the languages I know, i-=-1 or x=3 are not expressions, but rather statements, so they do not evaluate to a value. So, this would be a compiler error: a = (x=3)
In the languages I know,
i-=-1
orx=3
are not expressions, but rather statements, so they do not evaluate to a value.So, this would be a compiler error:
a = (x=3)
Well, not all languages allow for fun programming :)