Hongbo Zhang

Results 181 comments of Hongbo Zhang

`ref` is not an abstract type in pervasives. Its definition is ```ocaml type 'a ref = { mutable contents : 'a} ``` So we can not really hide `.contents` unless...

“It does not need to be” but we need large benefits to justify. There’re some benefit to keep contents when you are doing a nested pattern match. For normal js...

@lassik so your docker image is to support the Reason syntax(legacy) or the new ReScript syntax?

Let's not add import as a keyword here, import is used to import functions within the same language, also adding a new keyword adds lot of complexity, in general, we...

I know the ambiguity, my point is that the error message is unintuitive

> only opening a subset of Pervasives so that none of OCaml's style leak to the user. That's something we want to achieve in the upstream too, do you have...

Note I proposed `private let` instead of `let private` since it looks like the former is easier to implement

private is already a keyword used in other places

Note ocaml’s === is not the same as ===. Or we just redefine === into === but that would have some other implications Jonathan 于2020年7月30日 周四上午9:26写道: > This is a...

moved to syntax repo since this needs some syntax update. Previous discussions: https://github.com/ocaml/ocaml/pull/291 I am generally in favor of this feature (implemented in the front-end)