rescript-lang.org
rescript-lang.org copied to clipboard
add usage `fst` and `snd` for tuple
Nice find, but these are part of Pervasives and I don't think we'll keep them for the future when fully migrating to rescript-core.
Nice find, but these are part of Pervasives and I don't think we'll keep them for the future when fully migrating to rescript-core.
There are also other features like local abstract types and GADT are not documented, will it be deprecated in the future?
Not that I know of, but generally the concepts of more advanced features like GADT are so abstract from a use-case and usability perspective that we didn't even bother covering them in the docs (but we actually have an open issue for them in #153, in case someone has a good idea on how to describe them in a meaningful way).