Oscar Spencer

Results 73 comments of Oscar Spencer

> What syntax should we use? I vote for `NaN` and `Infinity`. > Should they be F32 or F64? We should probably have both, since F32/F64 NaN comparisons may not...

Type aliases definitely help. You'd have to also export `MaybeNumber` here though since it'd be an opaque type otherwise. I definitely feel where you're coming from with the character soup....

Yeah, I tried thinking about something short for `Result`, but it almost feels impossible since you've always got to give it two type params.

It would probably be better to do this before/with #211 so there won't need to be any breaking changes.

I think I'd lean towards enforcing POSIX-like paths.

I think we should refactor these to not use pervasives and move them into `runtime/debug` so it's clear they're for debugging (and can leak all the memory they'd like).

Defining modulo for floats/rationals might be reasonable behavior here instead of throwing an error. Here's what Python does: ``` Python 3.10.5 (v3.10.5:f377153967, Jun 6 2022, 12:36:10) [Clang 13.0.0 (clang-1300.0.29.30)] on...

`%` in JS is remainder rather than modulo, so it makes a little more sense there.

I was thinking of a bare-bones version of something like https://networkx.github.io/.