iafan / goplayspace

Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more
https://goplay.space
Other
981 stars 63 forks source link

playground accepts binary literal, goplayspace does not #43

Open therealplato opened 3 years ago

therealplato commented 3 years ago

Expected: I can declare var v int = 0b11010 Actual: 8:15: expected ';', found 'IDENT' b11010 (and 1 more errors) Repros: https://play.golang.org/p/Sw9HFvlcmMr https://goplay.space/#Sw9HFvlcmMr

DylanGraham commented 2 years ago

Another example: https://goplay.space/#8oYULUW3yL2

func main() {
    b := byte(0b00010011)
}

8:13: missing ',' in argument list