Skip to content

Commit

Permalink
docs: fix another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Aug 22, 2023
1 parent 7f399c4 commit fdfbb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/design.mld
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ In many designs, the name modifiers are coupled with export control ([public] v.

{2 A Reasonably Small Core}

The core language should be relatively small, possibly exploiting the compositionality to remove redundant constructors. For example, the core language does not have {{!val:Yuujinchou.Language.none}none}[ p] because it can be defined as the sequencing of the emptiness checking and the union of nothing. This, however, does not mean the number of constructors should be theoretically minimal: In earlier versions of yuujinchou, we have a "split" modifier that applies one modifier to a subtree and another to all bindings outside the subtree, but such a "mega-modifier" only complicates the core language and the engine implementation. To the extreme, one can have one single constructor in the core language to handle all features, but that would not be helpful.
The core language should be relatively small, possibly exploiting the compositionality to remove redundant constructors. For example, the core language does not have {{!val:Yuujinchou.Language.none}none} because it can be defined as the sequencing of the emptiness checking and the union of nothing. This, however, does not mean the number of constructors should be theoretically minimal: In earlier versions of yuujinchou, we have a "split" modifier that applies one modifier to a subtree and another to all bindings outside the subtree, but such a "mega-modifier" only complicates the core language and the engine implementation. To the extreme, one can have one single constructor in the core language to handle all features, but that would not be helpful.

The current design has six constructors in the core languages:
+ emptiness checking.
Expand Down

0 comments on commit fdfbb1c

Please sign in to comment.