FAQ
"format.Node internal error (16:2: illegal character U+2081 '₁' (and 2 more
errors))"
(from "go/format")

numbers are allowed in var names
x1 := 3

why not subscripts?
x₁ := 3


₁x := 3
should definitely generate the same error that this would
1x := 3


Works for other interesting utf8 only chars
http://play.golang.org/p/NpNiPVrU57

Just a thought.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedDec 23, '14 at 7:57p
activeDec 23, '14 at 8:05p
posts2
users2
websitegolang.org

2 users in discussion

Rob Pike: 1 post Bryan Turley: 1 post

People

Translate

site design / logo © 2021 Grokbase