News for hackers. Stuff that matters.
Re:C uses "&" for the address-operator because 'ampersand so... by jandrese on Tuesday October 10, 2023 @08:55AM (#37831442)
Do people have normally keyboards with a ∈ key?
Re:C uses "&" for the address-operator because 'ampersand so... by loup-vaillant on Tuesday October 10, 2023 @09:55AM (#37832149)
Just remove the ∈ and ⟨ characters, and make braces mandatory:

  for i 0:N:5 {
    // loop body
  }
By the way, the same should have been done with if and while: optional parentheses, mandatory braces:

  if a == b {
    // code
  }

  while idx < end {
    // code
  }
Re:C uses "&" for the address-operator because 'ampersand so... by d-lisp on Tuesday October 10, 2023 @02:42PM (#37835829)
It's possible that parsing a complex condition wrapped by parentheses was found more convenient.
Re:C uses "&" for the address-operator because 'ampersand so... by loup-vaillant on Friday October 13, 2023 @02:21PM (#37873763)
It’s not. Not for humans (the extra parenthesis is just useless clutter), and not for machines (I’ve written parsers, both alternatives are as easy to implement).