Closed ghost closed 3 years ago
Could we declare using typeclass as validating at expect
, type?
keywords?
(Thinking 😃 ) ... I understand what happened:
When we typing an value "abc"
then it will be constructed as string
. This rule isn't affected by special types. Okay. I must use a symbol that controls that it is proper for our own special types like char?
or char-expect
:
( symbol char-expect
(char :value ==> char :result)
(value @result)
) ::
"a" char-expect puts ; Screen: "a"
1 char-expect puts ; Screen: <ERROR will be printed>
Error: