[go-nuts] Re: Is it a compiler bug?

2016-11-12 Thread imd3c
OK, I get it. It's in the spec, I had to check it. But still, isn't it wrong? What's the point, is it tradition or something? I checked C, Java, Rust, they all do the same. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Is it a compiler bug?

2016-11-12 Thread imd3c
package main import ( "fmt" ) func main() { /* s := "*/" */ fmt.Println("Hello, playground") } tmp/sandbox035254559/main.go:9: newline in string tmp/sandbox035254559/main.go:10: syntax error: unexpected /, expecting expression tmp/sandbox035254559/main.go:12: syntax error: unexpected fmt