@certik / other moderators:
Starting with this comment, the subsequent discussion appears to be on simple generics / templates as opposed to prototype implementation in LFortran. It may thus be worth moving the comments to this other thread - hope it isn’t too much trouble.