Closed bfontaine closed 3 years ago
This PR adds a Char class, in order to fix the last item of #31.
Char
Char inherits from str, so this is backward compatible.
str
# both expressions are true Char("c") == "c" isinstance(Char("c"), str)
In fact, unless you explicitely test it with isinstance(c, Char), a Char is indistinguishable from a one-char str.
isinstance(c, Char)
This PR adds a
Char
class, in order to fix the last item of #31.Char
instancesChar
instances are dumped as EDN charsChar
inherits fromstr
, so this is backward compatible.In fact, unless you explicitely test it with
isinstance(c, Char)
, aChar
is indistinguishable from a one-charstr
.