Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes I do, because in C you do have to repeat pointer declarations and their modifiers per variable - there is no clean way to separate the variable name declarations from their properties

Edit: disagree also on sugar being irrelevant. It’s all about where you guide non engineers towards when they learn it. Domain scientists can be astonishingly productive in Fortran thanks to that - to achieve the same in e.g. C++ takes a lot more effort in training and establishing best practices, libraries etc.



C2x (or any gnu dialect):

    typeof(const float *const restrict) foo, bar, baz;
But yes FORTRAN got the defaults correct for it's applications.


Thanks! Actually wasn't aware of this. Still, not exactly something you want to repeat in every function declaration.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: