Fork me on GitHub
#squint
<
2022-08-20
>
didibus00:08:26

Ok, I read through: https://github.com/clavascript/clavascript/issues/22 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

borkdude05:08:19

@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)

borkdude15:08:27

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

borkdude18:08:58

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

borkdude18:08:22

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