On Saturday, 26 July 2025 at 23:08:35 UTC, luafyn wrote:
alias U = ReturnType!fn;
`ReturnType!(fn!T)` worksid avoid being this explicit with types tho, type inference is unidirectional in d, its best to lean into it and follow the natural flow
monkyyy via Digitalmars-d-learn Sat, 26 Jul 2025 16:47:36 -0700
On Saturday, 26 July 2025 at 23:08:35 UTC, luafyn wrote:
alias U = ReturnType!fn;
`ReturnType!(fn!T)` worksid avoid being this explicit with types tho, type inference is unidirectional in d, its best to lean into it and follow the natural flow