reasonml / reasonml.github.io

Reason's documentation site
https://reasonml.github.io
MIT License
333 stars 400 forks source link

List.find_opt missing from docs #268

Open aaronshaf opened 6 years ago

aaronshaf commented 6 years ago

"For example, List.find has the option-returning counterpart List.find_opt, which doesn't throw." (https://reasonml.github.io/guide/language/exception)

yet List.find_opt is missing from

https://bucklescript.github.io/bucklescript/api/Js.List.html

and

https://reasonml.github.io/api/List.html

samouri commented 6 years ago

List.find_opt was added in OCaml version4.05 (source). As far as I'm aware, BuckleScript only support OCaml version 4.02.3.

That means that List.find_opt probably isn't available yet in Reason

arnauorriols commented 6 years ago

Shouldn't it be removed from the docs then?

Anahkiasen commented 6 years ago

I think the new recommended way is to use Belt.List which uses options no?