News for hackers. Stuff that matters.
Re:C uses "&" for the address-operator because 'ampersand so... by elurg on Tuesday October 10, 2023 @08:43AM (#37831321)
Pascal uses this syntax.

Also "pointer to integer" is written as "^integer" which is better than "int".

Syntax also doesn't allow confusing stuff like like "int a, b;".

Re:C uses "&" for the address-operator because 'ampersand so... by brandmeyer on Tuesday October 10, 2023 @09:21AM (#37831719)
> "^integer" which is better than "int"

I agree that it reads a little better. But as a small-handed person, it is unfortunately much more uncomfortable to type.

Re:C uses "&" for the address-operator because 'ampersand so... by sureglymop on Tuesday October 10, 2023 @10:23AM (#37832510)
Honestly that fully depends on your locale and keyboard layout. So it really shouldn't influence programming language syntax design.
Re:C uses "&" for the address-operator because 'ampersand so... by bmacho on Tuesday October 10, 2023 @01:18PM (#37834797)
My computer has buttons, and characters printed on it. So I can't really change the distance between characters.