DEV Community

loading...

What's the need of rune as a separate type?

delta456 profile image Swastik Baranwal ・1 min read

Why there is need of rune i.e. Unicode strings as a separate type from string i.e. ASCII strings? Couldn't it just both type of strings have one type i.e. string like how languages have it?

Discussion (3)

pic
Editor guide
Collapse
nickholmesde profile image
Nick Holmes

Two things;

A rune represents a single Unicode Code Point (UTF-32 encoded, I assume).

A string represents a sequence of Unicode Code Points, UTF-8 encoded (in Go).

Collapse
mrfunny01 profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
Mrfunny 🇿🇲🇿🇲

Do anyone got ideal how I can add blogform as in customer database for blogger site myhospitall.org ?

Collapse
pizmovc profile image
Luka

This is too little information to help you.

You should create a new post, not just comment on unrelated post :)