Fork me on GitHub

Ok, I read through: and actually this makes sense.

Cora (she/her)00:08:37

I wonder if we can get rid of the typeConst thing and return the constructor function instead


@corasaurus-hex My suspicion is that dispatching on numbers is faster in JS, but this would be worth a benchmark. When @lilactown includes some protocol stuff, we can maybe move to that (after appropriate benchmarking)


It's probably too early to work on this now, but I wonder if we could have source maps + typescript support so you would get type error stuff in your emacs buffer while writing a clava program

Cora (she/her)18:08:50

i was literally just thinking about this last night

Cora (she/her)18:08:30

you could emit js with source maps but I don't know of anything that emits typescript with source maps (yet)

Cora (she/her)18:08:17

unless you mean to just emit plain js with whatever type checking typescript will give you on that without type information


@corasaurus-hex I was thinking you could emit a separate .d.ts file or write one manually


Tbh I haven't used typescript much, so it's a rather vague idea