Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Shouldn't we be allowed to assign anything to `unknown`?

$
0
0

this is absolutely a fair point that i should consider, although i also have this:

  let anyOrThrow = obj =>
    switch any(obj) {
    | Some(o) => o
    | None => throw(InvalidValue(Obj.magic(obj)))
    }

as part of the parser, where obj is a'


Viewing all articles
Browse latest Browse all 2592

Trending Articles