So I was foolin’ around in golang playground and I tried the following:
🍍 := "pineapple" 🫓 := "pizza dough" 🍅 := "tomato" 🧀 := "cheese" 🐖 := "ham" 🍕 := 🫓 + 🍅 + 🧀 + 🐖 + 🍍 fmt.Println(🍕)
And when I clicked on “Run”, I beholded astonished the following compilation errors
./prog.go:8:2: invalid character U+1F34D '🍍' in identifier ./prog.go:9:2: invalid character U+1FAD3 '🫓' in identifier ./prog.go:10:2: invalid character U+1F345 '🍅' in identifier ./prog.go:11:2: invalid character U+1F9C0 '🧀' in identifier ./prog.go:12:2: invalid character U+1F416 '🐖' in identifier ./prog.go:14:2: invalid character U+1F355 '🍕' in identifier ./prog.go:14:10: invalid character U+1FAD3 '🫓' in identifier ./prog.go:14:17: invalid character U+1F345 '🍅' in identifier ./prog.go:14:24: invalid character U+1F9C0 '🧀' in identifier ./prog.go:14:31: invalid character U+1F416 '🐖' in identifier ./prog.go:14:31: too many errors
I would expect an error for adding to the … But the thing reports error for the rest of the emojis
So my questions are… What does golang have against emojis? What does it have against pizza 🤌? Why emojis are not in the language specification at this point? Should I post a proposal at the golang repo?
Can’t believe there’s no more people talking about this at the moment…
Happy 1st of April y’all!