4 ms·
> There is not the char concept in Go, only rune, which means a code point. Go named their char rune. That's a distinction without a difference.
by masklinn 7y ago
> There is not the char concept in Go, only rune, which means a code point.
Go named their char rune. That's a distinction without a difference.
- hsivonen 7y agoRune in Go means a scalar value i.e. the same as Rust char but not the same as C char or Java char.
- masklinn 7y ago> Rune in Go means a scalar value i.e. the same as Rust char Yes. It's also the original intended meaning of java char, just didn't survive the transition to 21 bit USVs. So distinction without a difference.