Hyeseong Kim
Hyeseong Kim
since bigint is a primitive, it should be asserted with `typeof`
Maybe we can get even further than just custom prop types in this RFC. There is `JSX.IntrinsicElements` type in the TypeScript. - https://www.typescriptlang.org/docs/handbook/jsx.html#intrinsic-elements - https://www.totaltypescript.com/what-is-jsx-intrinsicelements Which allows to user overriding...
> For-loops and while-loops are only used in our standard library and only a handful of times. Not by making it a rule, just naturally, readable ReScript doesn't use those...
may related with #6477 and https://forum.rescript-lang.org/t/new-operator-for-bigint-support/3922
It's not that simple. It's what the rest of the world calls type classes (or extensions), and OCaml has been evaluating it for a decade (modular implicit). What I proposed...
> I'm wondering why the comparison operator only checks if the two arguments are the same type, and the arithmetic operator should be split between integer and float. This is...
Or, we can introduce only the obvious parts, such as type, literals, and untagged variants, and leave operators only in std modules as suggested in https://github.com/rescript-lang/rescript-compiler/issues/6477#issuecomment-1820645145. BigInt is usually used...
a backlink to an old discussion #4677
> BigInt is a rarely used feature. Mostly because it's not supported in older safari versions. In my product, all DB IDs are treated as bigint (bigserial). protobuf-js also relies...
> But you can already use BigInt with rescript-core - `BigInt("100000")` vs `100000n` is different. n literal is more compact, statically checked, and optimized. (See https://github.com/rescript-lang/rescript-compiler/issues/4677#issuecomment-1002980370) - BigInt is a...