rescript-lang.org icon indicating copy to clipboard operation
rescript-lang.org copied to clipboard

add usage `fst` and `snd` for tuple

Open Mng12345 opened this issue 1 year ago • 3 comments

Mng12345 avatar Mar 20 '23 14:03 Mng12345

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.

ryyppy avatar Mar 22 '23 06:03 ryyppy

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?

Mng12345 avatar Mar 22 '23 07:03 Mng12345

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).

ryyppy avatar Mar 22 '23 12:03 ryyppy