minus-squareblamittertoGeneral Programming Discussion•Semicolons in programming languages: Yay or Nay?linkfedilinkarrow-up3·5 years agoI’d say it wasn’t intended but accidental since it is possible to avoid brackets for one-line blocks in while. One could argue that the bug is in the language specs! Another could say it’s not a bug but a feature for some bizarre use. Well… linkfedilink
minus-squareblamittertoGeneral Programming Discussion•Semicolons in programming languages: Yay or Nay?linkfedilinkarrow-up2·5 years agoI love typos like while(true); linkfedilink
I’d say it wasn’t intended but accidental since it is possible to avoid brackets for one-line blocks in while. One could argue that the bug is in the language specs! Another could say it’s not a bug but a feature for some bizarre use. Well…