You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/LanguageGuide.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,8 @@ Note that match works with *values* (not references) takes ownership over the va
237
237
238
238
Note that this code would not take ownership over `might-be-a-string`. Also, the `s` in the first case is a reference, since it wouldn't be safe to destructure the `Maybe` into values in this situation.
239
239
240
+
**Note:** A sumtype cannot have more than 128 inhabitants, also known as constructors. If that reads to you like a byte limitation, you’re on the right track. While this is a limitation, it has not proved to be a problem as of yet.
241
+
240
242
### Modules and Name Lookup
241
243
Functions and variables can be stored in modules which are named and can be nested. To use a symbol inside a module
242
244
you need to qualify it with the module name, like this: `Float.cos`.
0 commit comments