Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I actually would prefer the computer string type to be array of bytes. Many people mentioned this type distinction already exists in many languages (Python, Haskell..).

Though I think it would be useful to think about it as a sort of subtype of human string, with default encoding in UTF-8. So substitution or concatenation of human and computer string would yield a human string (which is where these languages usually fail short, because you need explicit conversion, it doesn't work like e.g. integers and floats).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: