Skip to content

Commit

Permalink
Remove unnecessary alias types.
Browse files Browse the repository at this point in the history
ponylang/ponyc#3922
  • Loading branch information
sgebbie committed Nov 21, 2021
1 parent f6291f0 commit d790586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text/0000-json-getters.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ mutations to the document and then recover and `iso` reference afterwards.
The implementation consists of using the `apply()` style access to introducing
three getters, into `JsonDoc`, `JsonObject` and `JsonArray` respectively:

- document data access: `fun apply(): this->JsonType! => ...`,
- object data access: `fun apply(): this->Array[JsonType]! => ...`,
- array data access: `fun apply(): this->Map[String, JsonType]! => ...`.
- document data access: `fun apply(): this->JsonType => ...`,
- object data access: `fun apply(): this->Array[JsonType] => ...`,
- array data access: `fun apply(): this->Map[String, JsonType] => ...`.

These access methods can then be used via direct calls or via syntactic sugar
calls.
Expand Down

0 comments on commit d790586

Please sign in to comment.