News for hackers. Stuff that matters.
Re:Fortran adds conditional expressions by Someone on Thursday July 01, 2021 @05:53PM (#27705365)
Also depends on what you assign to. If you read an if/else statement, you have to check whether both branches assign to the same value. If that’s a complex expression, that isn’t trivial.
Re:Fortran adds conditional expressions by pklausler on Thursday July 01, 2021 @07:02PM (#27705965)
Fortran’s ASSOCIATE construct can help with that.

associate (x=>(complicated variable))

  if (test) then

   x = …

  else

   x = …

  end if 

 end associate