You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when string-ascii and string-utf8 were introduced, many functions documentation in the Clarity reference were not modified to include references to these new types when applicable (used to be a buff but I doubt many new people are aware of that).
Example of functions that can take a string (either ascii or utf8), but not the exhaustive list:
index-of (some of the examples even use ascii strings)
element-at
index-of
hash160 (not sure this would take it a string)
...
Also, more examples could use the string-utf8, there is only 1 reference that I could find to the utf8 string notation u"abcd" in the whole reference (https://docs.stacks.co/references/language-types)
when
string-ascii
andstring-utf8
were introduced, many functions documentation in the Clarity reference were not modified to include references to these new types when applicable (used to be abuff
but I doubt many new people are aware of that).Example of functions that can take a string (either ascii or utf8), but not the exhaustive list:
as-max-len?
instead of
it should have
concat
index-of
(some of the examples even use ascii strings)element-at
index-of
hash160
(not sure this would take it a string)Also, more examples could use the
string-utf8
, there is only 1 reference that I could find to the utf8 string notationu"abcd"
in the whole reference (https://docs.stacks.co/references/language-types)cc @pgray-hiro
The text was updated successfully, but these errors were encountered: