Better HN
topnewbestaskshowjobs
Log inSign up

dqbd

5 karma · joined May 29, 2020 (6y ago) · 4 submissions

Submissions

comment 3y ago · link · parent

A tuple does have a upper limit of 10 000 elements, which means that with this approach we can count to 10 000 at most.

Another approach which I tried is to do arithmetics on digits directly, storing digits in a tuple instead, but the code is not as elegant as the tuple one

https://github.com/dqbd/ts-math-evaluate/blob/main/src/math/...

2.

Show HN: TypeScript type-level math expression parser and evaluator(github.com ↗)

3 points · by dqbd · 3y ago · discuss

comment 3y ago · link · parent

Author here, you are correct! The issue here is due to the fact that a single user-perceived character might span into multiple tokens. This should be fixed now.

4.

Migrating Our Largest Mobile App to React Native(shopify.engineering ↗)

5 points · by dqbd · 3y ago · discuss