The closest thing to a “super comment” is shown in my edit to your example: https://play.golang.org/p/nkDcMCzhkf
It is legitimate, but it too has limitations. For me at least, those are rare. -----Original Message----- From: 'chris dollin' via golang-nuts <golang-nuts@googlegroups.com> Reply-To: chris dollin <ehog.he...@googlemail.com> Date: Saturday, November 12, 2016 at 9:02 AM To: imd3c <vvv.poc...@gmail.com> Cc: golang-nuts <golang-nuts@googlegroups.com> Subject: Re: [go-nuts] Is it a compiler bug? On 12 November 2016 at 07:33, imd3c <vvv.poc...@gmail.com> wrote: > package main > > import ( > "fmt" > ) > > func main() { > /* > s := "*/" > */ > > fmt.Println("Hello, playground") > } And asked if this: > > 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 at end of > statemen was a compiler bug. No, it isn't. The comment finishes with the */. Then there's a ", starting a double-quoted string literal. Then there's a newline, which is illegal in a double-quoted string literal. The insides of comments are not tokenised. Chris -- Chris "allusive" Dollin -- 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. -- 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.