like java?i like it

在 2020年7月15日星期三 UTC+8上午6:31:55,Harald Weidner写道:
>
> Hello, 
>
> > A typical computer keyboard provides four easily accessible pairs of 
> > single-character symmetrical "brackets": parentheses ( and ), square 
> > brackets [ and ], curly braces { and }, and angle brackets < and >. Go 
> uses 
> > curly braces to delineate code blocks, composite literals, and some 
> > composite types, making it virtually impossible to use them for generics 
> > without severe syntactic problems. Angle brackets require unbounded 
> parser 
> > look-ahead or type information in certain situations (see the end of 
> this 
> > e-mail for an example). This leaves us with parentheses and square 
> > brackets. 
>
> Another option would be the introduction of a new two-letter 
> "bracket" operator, for example <: and :> . This could be parsed 
> without symbol/type information and even without the "type" keyword. 
>
> That said, I'm fine with any syntax. Thank you for your work on 
> generics! 
>
> Regards, 
> Harald 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c4954299-11d0-4227-b703-dd03d3f2d5aao%40googlegroups.com.

Reply via email to