7 ms·
>For example, sometimes you'll get Unicode code points, but sometimes you'll get bytes of UTF-8. This isn't true, you only get code points when you convert to
by EdiX 12y ago
>For example, sometimes you'll get Unicode code points, but sometimes you'll get bytes of UTF-8.
This isn't true, you only get code points when you convert to []rune, I'm not aware of any situation where you would magically get codepoints.
>If any thread runs in an infinite loop that doesn't call built in functions, the entire runtime will freeze.
This is not true, since 1.3 all function calls can potentially yield. Also it only happened if you had as many goroutines running infinite loops as you had kernel threads.
- skj 12y agoIf you range on a string, you get runes. http://play.golang.org/p/CqLnT4m4GI http://play.golang.org/p/CqLnT4m4GI