-
-
Notifications
You must be signed in to change notification settings - Fork 38
Validate runtime types through the registry #408
Copy link
Copy link
Closed
Labels
functionsIssue pertains to the default function setIssue pertains to the default function set
Description
A follow-up to #368.
The current draft of the registry omits any way to define rules for validating runtime types, e.g. in message arguments. We're using regexes for literals (see #407), but there's no way for the :number function to specify that in case its argument is a variable ($count), the runtime value of that variable should meet some requirements (e.g. its type be in a union of some known types, or an instance of another known type).
It's not clear how to encode such requirements in an implementation-agnostic and programming-language-agnostic manner.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
functionsIssue pertains to the default function setIssue pertains to the default function set