Skip to content

Commit

Permalink
Try.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 26, 2024
1 parent 0136fc8 commit 786e0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/syntax-research/syntax-doc.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ box::use(interface[interface, fun, type.frame, u, enum, type.list])

Colour <- enum("red", "green", "blue")
my_colour <- Colour("red")
Colour("yellow") # Error: 'yellow' is not a valid value for Colour
try(Colour("yellow")) # Error: 'yellow' is not a valid value for Colour

# interface allows for arguments defining properties and types on a list object
# interface reserves some properties for internal use, such as `validate_on_access` and `extends`
Expand Down

0 comments on commit 786e0b3

Please sign in to comment.