[phix] about 'string' design?
- Posted by _tom (admin) Feb 20, 2021
- 687 views
string str1 = "hello" string str2 = { 'h','e','l','l','o' } string str3 = {104,101,108,108,111}
str2 and str3 give a type-check error
but
? str1 = { 'h','e','l','l','o' } // true ? str1 = {104,101,108,108,111} // true
What is the language design choice behind this behavior?
be well
_tom