rescript-association / reasonml.org

Deprecated in favor of rescript-lang.org
MIT License
125 stars 33 forks source link

Add Docs for Union Types via the [@unboxed] feature #148

Open ryyppy opened 4 years ago

ryyppy commented 4 years ago

Create a standalone page "Union Types", which basically translates the previous BS blog posts into a more formal documentation page:

This includes adding the [@unboxed] decorator to the decorators overview with a link to the actual doc (an example would be too big to just inline it).

\cc @fhammerschmidt

ryyppy commented 4 years ago

Since I have been investing quite some time in reiterating Tagged Unions w/ Variants, and since there was a lot of feedback coming from Cristiano's side regarding the unboxed feature (and its blog post), we probably want to split that topic up into more practical examples, independent from the "interop" sidebar category and really think about useful use-cases