[go-nuts] Re: Oden Language 0.3.0 released

2016-06-13 Thread Tyler Compton
I believe it does, thank you. If I understand you correctly, Oden is to the Go community a bit like what Scala is to the Java/JVM community. On Sunday, June 12, 2016 at 3:17:15 PM UTC-7, Oskar Wickström wrote: > > Glad you like it! :) > > The latter suggestion fits the goals of Oden better. It

Re: [go-nuts] A question about passing arguments to closure

2016-06-13 Thread Henry
In "go func(int) { fmt.Println(i)}(i)", 'i' is passed as an argument, but it is not used. 'fmt.Println(i)' uses the variable 'i' that is inherited from the parent function, because 'i' is not defined by the function func(int) as an argument and the next available 'i' is the one inherited from

Re: [go-nuts] goxpath: An XPath 1.0 parser

2016-06-13 Thread Henrik Johansson
How does it compare to https://godoc.org/launchpad.net/xmlpath? I have been using it with great satisfaction but it is not complete to my knowledge xpath feature wise. mån 13 juni 2016 kl 01:48 skrev Chris Trenkamp : > https://github.com/ChrisTrenkamp/goxpath > > I've

[go-nuts] Re: Save to store encryption key in Go executable?

2016-06-13 Thread Haddock
Thanks for all the useful answers. All I want to do is to create an encryption program for simple home computing purposes. I once lost some encrypted files, because I lost the password. I think I did a typo when typing it in and didn't realize. So I thought I write my own encryption programm

[go-nuts] Re: polymorphism (for Go 2.0), new fast playground is live

2016-06-13 Thread adamw
I'd like to see changes to the standard library. Things that many people agree should be fixed but thwarted by go1 compat. The list is long and this mailing list is riddled with them. Possibly weeding out the standard library, kicking stuff to /x/. I'd provide generics through preprocessors

[go-nuts] Proposal: extend the "don't care" value to more uses

2016-06-13 Thread oli . gagnon4418
consider func Foo(a int, b string, x SomeStruct) It would be nice if it was possible to pass in the "don't care" value, a.k.a. "_" as one of the argument, as an alias for the default value of the type. pkg.Foo(a, b, _) This way if the user knows he doesn't care about the last value and

[go-nuts] Re: curious problem implementing RGB565 image

2016-06-13 Thread Dan Kortschak
Yes, that explains it. The simple summary is that I forgot the r,g,b,a are 16bit and was working with them as 8bit. This is why the image.RGBA worked, but the png decoded image did not - image.RGBA returned c|c<<8 for each channel, so the error was masked by having the low byte mimic the high

Re: [go-nuts] Re: Better sum types for go

2016-06-13 Thread as . utf8
Thanks! On Monday, June 13, 2016 at 3:27:51 AM UTC-7, Jesper Louis Andersen wrote: > > > On Mon, Jun 13, 2016 at 1:58 AM, wrote: > >> What research or other literature can you recommend on the topic of type >> theory? > > > Benjamin C. Pierce's "Types and Programming

[go-nuts] Re: How to get executed query string after execution.

2016-06-13 Thread Harry
Hi Dave, Now, I'm developping cache system of query result to redis or another key-value store. Stored data are supposed that seriarized result of query using key serialized query string exected actually. Harry 2016年6月14日火曜日 10時23分25秒 UTC+9 Dave Cheney: > > If there was a way to get the