I feel we need a solution that will automatically allow
<T>add(Complex<T>, T)
via the automatic conversion
Yes, totally agree!
Options (2/2b) still look feasible, although yes, they…
Having to specify whether to $reflect
generic or not is indeed not ideal but acceptable at least for now. I agree on parking $$typeMetadata!
for now, it's not a magic solution.
My idea is…
Hmm, all these new TS issues suck, we definitely don't want that.
The $$typeMetadata!
sounds promising!
In my head, Typocomath is an extension on top of Pocomath. I think the step to…
Ok I'll look into the .reflectedType
issue next week. And indeed it may not be an issue in practice since it's an under the hood thing, I'll keep that in mind.
The lazy approach of the…
In 6bfd06cafb
I've added code to extract the generic parameter from the reflectedType
.
That's good news!
I've checked out the latest version of main
, and can successfully run pnpm go
. There was one typo export type FunctionDef {
, I've changed that to `export type…
If we implement the Dispatcher as a class, we should not attach functions to itself, then we mix things up.
However, the end user is probably not interested in a verbose `const math = new…
Thanks for checking out https://docs.rttist.org/. I expect that a different library can possibly only improve on syntax or compile-time performance of ts-macros
. The main question we want to…
😂 $reflecTypes
. I expect it will lead to confusion though, it looks like a typo, so we have to change it to $reflectTypes
in the end I think. But totally fine with me to keep it in for now…
I say let's continue with your latest approach:
export const sqrt = ...
$reflect!(sqrt)
I'll see if I can add this & { reflectedType: string }
type information somehow, but…
I really like to separate the $reflect
from the "clean" TS function. I also like your idea of invoking $reflect
with multiple functions in one go, that will be very handy and compact in files…
I did two small steps:
- upgrade to
ts-macros@2.5.0
instead of using the git source. Ok if I mergets-macros-issues
intomain
and then deletets-macros-issues
andts-macros
? - I…
I'll close this issue again, we're not actively working on this approach and not planning for that either.