Don't run switch for single cases

This commit is contained in:
2024-09-11 16:23:14 -07:00
parent db7d2ce73d
commit 90f3229af5
2 changed files with 11 additions and 8 deletions

View File

@@ -8,6 +8,7 @@
- [ ] operators
- [ ] import
- [ ] add {{ }} and solving autos
- [ ] do blocks
- [ ] some solution for + (classes? ambiguity?)
- [ ] show compiler failure in the editor (exit code != 0)
- [ ] write js files into `out` directory
@@ -17,8 +18,8 @@
- [ ] type at point in vscode
- [ ] repl
- [ ] LSP
- [ ] don't match forced constructors at runtime
- maybe do this in codegen if there is only one case.
- [x] don't match forced constructors at runtime
- I think we got this by not switching for single cases
- [ ] magic nat (codegen as number with appropriate pattern matching)
- [ ] magic tuple? (codegen as array)
- [ ] magic newtype? (drop in codegen)