dillon1000/react

Commit

Cleanup Stack impl

Originally I defined `Stack` as an interface to ensure both Node and Empty 
variants would have an identical API. But exporting an interface allows a 
developer to define other implementations, when we really want to ensure that a 
Stack is precisely a Node or Empty instance. This PR changes to exporting a 
union of `Stack = Node | Empty`, and makes the interface private to the module.
Browse files
Changed paths1 file
First-parent comparison
M compiler/forget/src/Utils/Stack.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…