News for hackers. Stuff that matters.
Re:C uses "&" for the address-operator because 'ampersand so... by kps on Tuesday October 10, 2023 @09:29AM (#37831829)
That (also) came from BCPL. (BCPL had a separate `endcase` statement; `break` applied only to loops. It also had `docase ‹expr›`, which is the equivalent of a loop `continue`, re-entering the `swtichon`.)
Re:C uses "&" for the address-operator because 'ampersand so... by vincent-manis on Tuesday October 10, 2023 @05:22PM (#37837731)
As I recall, B was modelled on an early BCPL compiler that didn't have an ENDCASE statement, hence the overloading of break for exiting a switch block.