[go-nuts] Re: go language sensitive editor?

2018-11-22 Thread hay
LiteIDE here. https://github.com/visualfc/liteide On Wednesday, November 21, 2018 at 12:52:11 AM UTC+4, Pat Farrell wrote: > > I know, this is both a FAQ and an unanswerable question. I'm an old > programmer who has used nearly every editor known to man. I am not a fan of > whole-universe IDEs,

[go-nuts] Force pointer at compile time to interface{} parameter

2018-11-19 Thread hay
Hi, I've the following example code of correct version. func SomeFunction(itemPtr interface{}) { //itemPtr must be pointer to struct and not struct. } func SomeFunctionCaller() { u := UserRecord{} SomeFunction() } Above is the correct version, but some

Re: [go-nuts] Re: Regarding contracts

2018-10-30 Thread hay
Hi, Regarding support for contracts in Go, please take a look at this: https://www.youtube.com/watch?v=HOl11mP4V68 Kind regards, -- 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

Re: [go-nuts] Re: Go 2 Proposal Comments

2018-10-28 Thread hay
I prefer Go's compiled version over JIT of Java/.Net. I've faced the same problem with Microsoft's 'dot net.' I asked this with Java and .Net but they didn't listen then, and now Microsoft is adopting same with '.Net Core' after Go. Anyhow when Go came, finally there was another language that

Re: [go-nuts] Re: Regarding contracts

2018-10-27 Thread hay
:17 AM UTC+4, Marko Ristin wrote: > > Hi Hay, > There's already a tool for formal contracts in Go: > https://github.com/Parquery/gocontracts > > Cheers Marko > > Le dim. 28 oct. 2018 à 00:19, hay > a > écrit : > >> Hello, >> >> Code co

Re: [go-nuts] Static assert at compile time

2018-10-27 Thread hay
Hi robert, I'm looking for something C/C++ like static assertion to check few things at compile time. Hi Ian, thanks for the reply. It is checking at init at the moment. It is basically string or/and version checks. I'll give simple example. In C++ it will be something like this. class Foo {

[go-nuts] Re: Go 2 Proposal Comments

2018-10-27 Thread hay
"To this day, you can take a “binary” written for Java 1.0 and it will run under the latest JRE. You can compile Java 1.0 source code with the latest compiler. This is an amazing accomplishment that can’t be understated." I've concern about this. This kind of guarantee might prevent needed

[go-nuts] Re: Regarding contracts

2018-10-27 Thread hay
Hello, Code contracts are needed for safety critical applications but they would help other applications too. I hope code contracts support comes to golang. Also static compile time asserts and conditional checking. By code contracts I mean support for pre-conditions, post-conditions, and

[go-nuts] Static assert at compile time

2018-10-27 Thread hay
Hi, I've a project and it needs static asserts at compile time to check if string values are not left empty by the programmer. Is this possible in golang? Thanks in advance -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] Turning off nagle's algorithm for http.Client

2016-10-10 Thread hay
I stand corrected, it is there in "newTCPConn" function. On Monday, October 10, 2016 at 10:16:27 AM UTC+4, Sokolov Yura wrote: > > Read carefully, and you will not need to do redundant work and write > redundant code. > > It is really here: >

Re: [go-nuts] Turning off nagle's algorithm for http.Client

2016-10-09 Thread hay
@Janne, thanks got it working. @Sokolov, I don't see it set in dial code. I'm using 1.6.* version. -- 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

[go-nuts] Turning off nagle's algorithm for http.Client

2016-10-08 Thread hay
Hi, I'm using http.Client to make restful calls, turning off nagle's algorithm will help as messages are very short and response time needs to be fast. Is there a way to check or/and set to turn off 'NoDelay'/Nagle's algorithm for http.Client ( https://golang.org/pkg/net/http/#Client ) ?