Re:Go 2 Draft Designs
by foldr on Tuesday August 28, 2018 @05:41PM
(#17863155)
Fortran does ok without generics.
[ Parent
| on HN ]
So does C but you don't expect the same things from a language from the 70's. I don't think C or Fortran would be very popular if they were released today.
I won't argue with that, but I'd just like to say that the newest Fortran versions actually make a quite modern language.
Most of its quirks are related with compatibility with older versions. If a new version without that handicap was released today, it may look nicer than most people think.
Sure, I'm not denying that generics are useful sometimes. It's just that people sometimes exaggerate how big of a problem it is not to have them.
>In Fortran 90, user-defined procedures can be placed in generic interface blocks. This allows the procedures to be referenced using the generic name of the block.
I don't know Fortran, but I'm fairly sure that you just googled "fortran generics" and pasted the first result without checking it :)
Fortran got simplified generics in 2003, I pasted the wrong link by mistake.
https://cug.org/5-publications/proceedings_attendee_lists/20...
Fair enough, I didn't know about that feature. However, people were using Fortran successfully for writing huge numeric libraries waaaaayyy before that.