Closed perazz closed 3 months ago
- Put class functions inside the derived type:
I'm actually starting to move away from this unless polymorphism is actually going to be used. It feels like a nicer syntax and less namespace pollution, but I'm less and less convinced it's worth it to couple to a language/design feature that you aren't actually taking advantage of.
The rest I pretty well agree with.
List of miscellaneous improvements that I'm seeing on the current repository
pure elemental
functions:https://github.com/AnonMiraj/fig/blob/36c15fac34c156fb1dd40369e0b9a1cab0a695a6/src/fig_rgb.f90#L15-L23
https://github.com/AnonMiraj/fig/blob/36c15fac34c156fb1dd40369e0b9a1cab0a695a6/src/fig_rgb.f90#L25-L32
i.e. something like
i0
format to avoid spaces when printing integers:https://github.com/AnonMiraj/fig/blob/36c15fac34c156fb1dd40369e0b9a1cab0a695a6/src/fig_rgb.f90#L41
cc @everythingfunctional @johandweber