Perhaps another source of resistance to < > is the trauma many of us have from 
its major obfuscation of C++ code?

- Randy

> On Jul 15, 2020, at 3:13 PM, Yaw Boakye <wheres...@gmail.com> wrote:
> 
> To summarize the thread so far:
> 
> - parenthesis is a no-no
> - angle brackets are popular/common but that alone doesn't make good 
> argument. some languages have already deviated. scala is popular, uses square 
> instead of angle brackets.
> - go's current pseudo-generic data structure, the map, already uses the 
> square bracket (e.g. map[int]int), a vote for square brackets. internal 
> syntax consistency is key.
> 
> On Wed 15 Jul 2020 at 23:04 'Dan Kortschak' via golang-nuts 
> <golang-nuts@googlegroups.com> wrote:
> On Wed, 2020-07-15 at 14:36 -0700, Randall O'Reilly wrote:
> > And the use of [ ] in map is more semantically associated with its
> > conventional use as an element accessor in arrays / slices, not with
> > some more general kind of type parameter.
> 
> The [] syntax can be viewed as an indexing operation perfectly well in
> the context of generics; a generic function or type is a map of
> implementations or types and so the [] syntax is a type index into that
> map, just as map[T1]T2 is a type index into the builtin generic map
> type. This is not mental stretch.
> 
> 
> -- 
> 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/abe84ff5abefe2815137bea9cb83eb9e8d5fdafb.camel%40kortschak.io.
> -- 
> Curried programmer
> Homepage: http://yawboakye.com
> I'm tweeting when I'm not coding when I'm not holding my niece.
> 
> -- 
> 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/CAPJoGXsM%2BuzfS_2sNBXP2d4z%3DvC-2gHOu_QS%3DL3PSQKkx6_drg%40mail.gmail.com.

-- 
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/2A62BAF3-6D6E-45B2-A3DE-824AA784724D%40colorado.edu.

Reply via email to