[go-nuts] concurrency safety
How would you cal "thread-safety" in Go? Go doesn't have threads so the term "thread-safety" sounds bit off. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/8337a900-a940-4e60-a26c-8aa5a3b6472cn%40googlegroups.com.
[go-nuts] Bitwise operators applications
Hello golang-nuts. I'm new to Go language and have no solid experience with C/C++. I was a database programmer with some Python and I was able to get around without bitwise operators easily. Of course, I ran into tons of issues with performance, deployment and other stuff. That is why I switched to Go. The question is what are practical applications of bitwise operations in Go and when I should use/learn them? Thanks Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[go-nuts] constants vs variables
Hello golang-nuts, Here are two code snippets with operations on different types. One with constants and another one with variables. The first one works, the second one doesn't. Why is it like this? Logically both code snippets shouldn't work: https://play.golang.org/p/eqNJootZ3a package main import ( "fmt" ) func main() { const ( c = 6 r = 0.001 ) fmt.Println(c * r) } https://play.golang.org/p/z0xEAy56Tg package main import ( "fmt" ) func main() { c := 6 r := 0.001 fmt.Println(c * r) } Thanks Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.