# How to generalize the function/subroutine to any data type?

**URL:** <https://fortran-lang.discourse.group/t/how-to-generalize-the-function-subroutine-to-any-data-type/5529>\
**Category:** Uncategorized\
**Created:** [April 9, 2023, 2:02am UTC](https://fortran-lang.discourse.group/t/how-to-generalize-the-function-subroutine-to-any-data-type/5529 "2023-04-09T02:02:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![shahmoradi](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/shahmoradi/32/3151_2.png) [@shahmoradi](https://fortran-lang.discourse.group/u/shahmoradi)\
**Post date:** [April 9, 2023, 4:26am UTC](https://fortran-lang.discourse.group/t/how-to-generalize-the-function-subroutine-to-any-data-type/5529/4 "2023-04-09T04:26:36Z")

</div>

I think you desire a syntax similar to what I (and many others) wished for in this [post](https://fortran-lang.discourse.group/t/prototype-implementation-of-fortran-generics-in-lfortran/4664/26). Such syntax is not going to be seen in Fortran ever, or anytime soon, based on the discussions in the above thread.

---

_[View the full topic](https://fortran-lang.discourse.group/t/how-to-generalize-the-function-subroutine-to-any-data-type/5529)._
