Re: [go-nuts] Missing binary operator shortcuts &&= and ||=

2017-05-06 Thread Ian Lance Taylor
On Fri, May 5, 2017 at 10:26 AM, roger peppe wrote: > On 5 May 2017 at 14:11, Michael Jones wrote: >> Just so. One cannot do boolean arithmetic with boolean variables. >> >> We have: >> EQUIVALENCE ("==") >> XOR ("!=") >> NOT ("!") -- George

Re: [go-nuts] why received can be defined with/without pointer?

2017-05-06 Thread Ian Lance Taylor
On Sat, May 6, 2017 at 3:39 AM, wrote: > > Question about the receiver of a func. > > It can be defined as star/no star, and consumed as star/nostar. > > The understanding i have so far is, > it let the developer define the memory model he d like to use. > > It leads to cases

Re: [go-nuts] Re: understanding utf-8 for a newbie

2017-05-06 Thread Sam Whited
On Sat, May 6, 2017 at 7:40 PM, peterGo wrote: > Corrected, corrected link. I will get it right eventually! > > For UTF-8 to CP1252: https://play.golang.org/p/vzupJY78XB FWIW, if you do need CP1252 (you probably don't) it already exists in Go-land as one of the encodings

[go-nuts] Proposal: Tags on Interface types

2017-05-06 Thread Glen Newton
I would like to propose allowing annotations (tags) on Interface types. Only a subset of an Interfaces methods could be tagged. This subset is defined as methods that have a single return type and take no parameters (as a best practice, these methods should not change any state and be thread

Re: [go-nuts] understanding utf-8 for a newbie

2017-05-06 Thread Sam Whited
On Fri, May 5, 2017 at 8:11 PM, rob solomon wrote: > I decided to first change ", ' and emdash characters. Using hexdump -C in > Ubuntu, the runes in the file are: > > open quote = 0xE2809C > > close quote = 0xE2809D > > apostrophe = 0xE28099 > > emdash = 0xE28094 The

[go-nuts] Re: json with comments

2017-05-06 Thread C Banning
https://godoc.org/github.com/clbanning/checkjson#ReadJSONFile and ReadJSONReader will process JSON files or streams that have comments - however, no block comments. More importantly the package provides functions that check for potentially misspelled keys in the JSON object and to identify

Re: [go-nuts] Re: [ANN] gos2: S2 geometry library in Go

2017-05-06 Thread Robert Snedegar
Are you using the C++ or Go libraries? On Fri, May 5, 2017 at 1:09 PM, mhoggan via golang-nuts < golang-nuts@googlegroups.com> wrote: > I am trying to find a group associated with https://code.google.com/ > archive/p/s2-geometry-library/. This is the only post that comes up when > searching

[go-nuts] Re: understanding utf-8 for a newbie

2017-05-06 Thread peterGo
rob, Why are you converting UTF-8 to ASCII for Windows 10? Convert UTF-8 to CP1252 (Windows-1252) or UTF16. Corrected link. For UTF-8 to CP1252: https://play.golang.org/p/vzupJY78XB Peter On Friday, May 5, 2017 at 9:11:16 PM UTC-4, rob solomon wrote: >

[go-nuts] Re: understanding utf-8 for a newbie

2017-05-06 Thread peterGo
rob, Why are you converting UTF-8 to ASCII for Windows 10? Convert UTF-8 to CP1252 (Windows-1252) or UTF16. For UTF-8 to CP1252: https://play.golang.org/p/BBiN2ihc02 Peter On Friday, May 5, 2017 at 9:11:16 PM UTC-4, rob solomon wrote: > > Hi. I decided to write a small program in Go to

[go-nuts] Re: download link - 400 error code

2017-05-06 Thread mhhcbon
hi, you are referring to the downloads available here https://golang.org/dl/? Here the linux one works. i can t find mirror of them. Have you searched for yourself ? Maybe we might try to host it over bt if no one come up with a mirror. Do you know a host that works for you? On Saturday,

[go-nuts] Re: json with comments

2017-05-06 Thread mhhcbon
awesome package :) The syntax looks great! Especially the forgiving one. On Saturday, May 6, 2017 at 2:01:26 PM UTC+2, Michael Gross wrote: > > Hi, > > even tough json is a data exchange format I find it sometimes useful to > use these files as configs. > Then after a while you would like to

Re: [go-nuts] Missing binary operator shortcuts &&= and ||=

2017-05-06 Thread Jesper Louis Andersen
Finding evidence among programmers can be tricky. You may be up against a considerable selection bias in a lot of cases: * You pick among experts in the field. Newcomers are unlikely to have the same problems as experts. * The set of people who wants a certain feature tend to be more vocal about

[go-nuts] Re: download link - 400 error code

2017-05-06 Thread abbasnaghdix
hi. Yes, I am an Iranian. Error number 403 download for my queries. Then I use VPN to my display error number 400. Where is problem? -- 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

[go-nuts] json with comments

2017-05-06 Thread Michael Gross
Hi, even tough json is a data exchange format I find it sometimes useful to use these files as configs. Then after a while you would like to add a comment or some other person has forgotten to format the file and the formatter you are using messes the file up. also when it gets bigger its

Re: [go-nuts] Re: pure-Go MATLAB file I/O package ?

2017-05-06 Thread Sebastien Binet
Elia, On Fri, May 5, 2017 at 8:31 PM, wrote: > Hi Sebastien, I'm writing a program that needs to do the exact same thing > you were asking, have you by any chance developed that library? :P > I started it: https://github.com/sbinet/matfio but had to put it a bit on

[go-nuts] why received can be defined with/without pointer?

2017-05-06 Thread mhhcbon
Hi, Question about the receiver of a func. It can be defined as star/no star, and consumed as star/nostar. The understanding i have so far is, it let the developer define the memory model he d like to use. It leads to cases such as - define start/nostar on a type - consume a stared type as a