Re: [go-nuts] Generic symbol metaproposal

2020-07-27 Thread bugpowder
IMHO uppercase, single letter for denoting generic types would be a nice syntax / convention. Sure, that would limit to 26 generic types per function ("enough for everybody"?), and probably break some bizarro existing code (using uppercase single-letter characters for parameter names) -- thought

Re: [go-nuts] Generic symbol metaproposal

2020-07-26 Thread Michael Jones
I'm never sure how much detail to share. The colorForth idea is a perfect example of the thought about "another dimension" of specification. (Albeit difficult to implement in practice). The upper/lower case signal is a good one, and easy; it is limiting, but not terribly, and offers easy

Re: [go-nuts] Generic symbol metaproposal

2020-07-24 Thread David Riley
On Jul 24, 2020, at 5:50 PM, Ian Lance Taylor wrote: > > On Fri, Jul 24, 2020 at 2:22 PM wrote: > > > > On 7/23/20, Michael Jones wrote: > > ... > > > Another delight is the uppercase signal for external. > > > > > > Maybe the “how to signal it” aspect of type instantiation could look to > > >

Re: [go-nuts] Generic symbol metaproposal

2020-07-24 Thread fgergo
On Fri, Jul 24, 2020, 23:50 Ian Lance Taylor wrote: > On Fri, Jul 24, 2020 at 2:22 PM wrote: > > > > On 7/23/20, Michael Jones wrote: > > ... > > > Another delight is the uppercase signal for external. > > > > > > Maybe the “how to signal it” aspect of type instantiation could look to > > >

Re: [go-nuts] Generic symbol metaproposal

2020-07-24 Thread Ian Lance Taylor
On Fri, Jul 24, 2020 at 2:22 PM wrote: > > On 7/23/20, Michael Jones wrote: > ... > > Another delight is the uppercase signal for external. > > > > Maybe the “how to signal it” aspect of type instantiation could look to > > these approaches as well—make the automatic understanding so magical

Re: [go-nuts] Generic symbol metaproposal

2020-07-24 Thread fgergo
On 7/23/20, Michael Jones wrote: ... > Another delight is the uppercase signal for external. > > Maybe the “how to signal it” aspect of type instantiation could look to > these approaches as well—make the automatic understanding so magical that > the complete specification is unnecessary in most

[go-nuts] Generic symbol metaproposal

2020-07-22 Thread Michael Jones
One interesting fact of go is that semicolons are required at the end of statements. A fact forgotten perhaps because of the automatic ‘we’ll insert one for you’ process. This duality, required but auto-supplied in nearly every case is a delightful outcome. Another delight is the uppercase signal