a program not using unsafe cannot set a pointer to -1, even if there is a
race, right?
- erik
On Sunday, December 3, 2017 at 10:20:44 PM UTC-8, Jan Mercl wrote:
>
> On Mon, Dec 4, 2017 at 7:03 AM > wrote:
>
> > does anyone have any idea what's going on here, or some hints on
> debugging this?
On Mon, Dec 4, 2017 at 7:03 AM wrote:
> does anyone have any idea what's going on here, or some hints on
debugging this?
What does the race detector say?
--
-j
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group a
I don't think that this is a productive thread. I'll just make a few
points for the record.
On Sun, Dec 3, 2017 at 8:07 PM, wrote:
>
> Did Go or Rust come first?
Graydon started working on Rust first, but Go was announced publicly
first. At the time that the Go project started within Google,
i'm running go 1.8.3 on linux. about 1 in ~10 billion calls (spread across
many machines), i get
a backtrace that looks like the following:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x4c3406]
goroutine
But why, should
x = x
Also be a compilation error?
This sort of think is best left to linters.
--
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+un
On Saturday, December 2, 2017 at 11:57:58 PM UTC-7, Ian Lance Taylor wrote:
>
> On Sat, Dec 2, 2017 at 11:37 AM, >
> wrote:
> >
> > Google is not going to be happy if somebody uses Go to compete against
> > Google.
>
> I think that Go is a nice language, but it's not so nice that it would
On Saturday, December 2, 2017 at 9:06:54 PM UTC-7, as wrote:
>
> Transitive property abused for emphasis.
>
>>
>>> On Friday, November 24, 2017 at 7:23:06 PM UTC-8, Hugh Aguilar wrote:
My ultimate goal with Go is to write a program to "understand" the Ido
language, at least insomu
On Saturday, December 2, 2017 at 12:50:11 PM UTC-7, Jan Mercl wrote:
>
>
> On Sat, Dec 2, 2017, 20:38 > wrote:
>
>>
>> Google is not going to be happy if somebody uses Go to compete against
>> Google.
>>
>
> This is where I stopped considering any of your future posts worth my
> attention.
>
very very thanks!
cannot inline copyIface1: has ... args
from *a[0].(string) (indirection)
key escapes to heap
在 2017年12月3日星期日 UTC+8下午4:08:41,Dave Cheney写道:
>
> Add -gcflags=“-m -m” will tell you.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" grou
My point is that it should give an error or refuse to compile.
On Sunday, 3 December 2017 15:10:42 UTC-8, Dave Cheney wrote:
>
> What is the error? This construct seems harmless.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe fro
It's harmless, but also pointless and hinting at a likely mistake, so I
think it would be sensible suggestion for a vet check.
OTOH, other pointless statements (like `_ = x`) don't cause a vet-error,
though.
On Mon, Dec 4, 2017 at 12:10 AM, Dave Cheney wrote:
> What is the error? This construct
What is the error? This construct seems harmless.
--
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.
For more options, visi
Go catches a bunch of simple programming errors like unused variables,
imports etc. Should it not catch bad appends like this ?
foo := []string{}
foo = append(foo)
I understand the signature of the append function is ([]any, on_or_more
...) which allows the compiler to build it - but such a si
https://chessprogramming.wikispaces.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.
For more options, visit https:/
I am trying to use golang and swagger but I am confused on what package I
should use:
There is: https://github.com/go-swagger/go-swagger or
https://github.com/yvasiyarov/swagger
Does anyone use Swagger with go and any tips would be much appreciated.
--
You received this message because you ar
On Sat, 2 Dec 2017 11:37:46 -0800 (PST), you wrote:
>Google is not going to be happy if somebody uses Go to compete against
>Google. AFAIK, most if not all of Google's money comes from selling
>advertising on their
>search-engine.
Another view - Google search only works because people / compan
Hey, btw, you don't need a blank-identifier there, simply type:
package main
func main() {
println("Hello world")
for range [3]int{} {
println("Yay")
}
}
On Monday, December 19, 2011 at 1:18:33 AM UTC+3, Christoffer Hallas wrote:
>
> I have a hard time understand people who complain about this.
Thanks for the reply. Those are some good considerations.
I'm not excited about retaining a "stub" package in the old location. I'd
rather that just redirect, rather than creating two packages. The
two-package approach may solve a short-term pain, but I fear it may
increase long-term confusi
Add -gcflags=“-m -m” will tell you.
--
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.
For more options, visit https://gro
19 matches
Mail list logo