Ah, yes I've see the tests-in-sourcefile approach when I recently tried out Rust.
I'm ok with trying it out (especially inside a POC). I'm totally fine with the idea in general. I doubt…
I've pushed a commit to not run vitest in watch mode for now. I think later on we can look into running the build, reflect, and test scripts all in a watch mode. I don't think that is the highest…
All runs fine on Windows, nice job :)
Two thoughts:
- I'm used to putting tests in a separate file with a name like
.test.ts
, and without theif (import.meta.vitest)
conditionals, since…
(A) About the actual-call-signature idea: I think a drawback may be performance, but it really requires a benchmark to figure that out (creating strings is slow, but a lookup in a map is fast). It…
Yes! Are you going to give this a shot? As soon as there is a bare-bone implementation, I think I can start working on implementing more functions for it.
math5
vs dispatch_refactor
approach
Yes let's close this issue. I'm looking forward to the next step :)
math5
vs dispatch_refactor
approach
Ok the Windows issue will be solved 😁, I've pushed a commit in main
: 2a8823c5f7
math5
vs dispatch_refactor
approach
So, in short: let's keep the POC as it is right now, built a first version of the dispatcher, and after that see if there is need to finetune the API's.
(5) O: and about the naming of the…
math5
vs dispatch_refactor
approach
Ha ha, you managed to produce a "mega post" for point 2 alone 😉
- 👍
- (b) In the past, I have avoided using Symbol for such cases and used a "unique enough" property because Symbols…
math5
vs dispatch_refactor
approach
This math5
approach looks more and more promising Glen! Awesome. The separate build step is working out quite nicely.
- I love the
_reflectedType6
JSON structure! This should be easy to…
math5
vs dispatch_refactor
approach
That sounds promising! I've checked out feat/parse-reflection
but I see the logging like:
Defs from C:\Users\wjosd\projects\misc\math5\build\numbers\arithmetic.d.ts are undefined
…
math5
vs dispatch_refactor
approach
Yes I'm getting email notifications again!
Good idea to try use the TypeScript parser itself to parse the .d.ts files, that would be nice. That will save us quite some work, then we only have…
math5
vs dispatch_refactor
approach
@glen I've pushed a branch feat/reflect-types
where I experimented with a script [./tools/reflectTypes.mjs
](https://c…