Welcome to the community.
If you’d like to learn more about the generics that are about to be prototyped in LFortran you can check out our “Traits, Generics and Modern-day OOP” proposal for Fortran.
@certik and the LFortran team are presently implementing Fortran’s legacy OO polymorphism to get LFortran to beta status. But once they’re done with this, they will focus quite a bit of their efforts on implementing this proposal. Just contact them if you’re interested.