LFortran - Implementing generics
- Mentors
- Ondřej Čertík, czgdp1807, Rohit Goswami
- Organization
- Fortran-lang
- Technologies
- c++, fortran
- Topics
- compilers
Currently LFortran requires that all function parameters to be typed. This makes implementing algorithms supported by many types, tedious. This project will implement generics in LFortran using the same design as C++ 20 concepts for type restrictions. A previously proposed notation will be used. The implementation will be done completely in the ASR level. (Abstract semantic representation). It will introduce a new data type that stores data types (type) and will use it to generate concrete functions from generic functions.