Re: [go-nuts] Help: how to add `this` feature to my go source?

2016-10-01 Thread Wang Yarco
. On Saturday, October 1, 2016 at 2:48:19 PM UTC+8, Brad Heller wrote: > > Not that I agree with the sentiment here, but just for discussion sake: > Isn't this a (potentially) good candidate for code generation? Little > complex, but... > > On Sep 30, 2016, at 10:05 PM

Re: [go-nuts] Help: how to add `this` feature to my go source?

2016-09-30 Thread Wang Yarco
.. If it becomes closed, the reason must be there are about >1000 person begin to laugh at my codes :) The only purpose is that i want to make it funny (writing golang code in my way). On Saturday, October 1, 2016 at 11:44:58 AM UTC+8, Justin Israel wrote: > > > > On Sat,

[go-nuts] Help: how to add `this` feature to my go source?

2016-09-30 Thread Wang Yarco
Though there's no strict rule to name the instance when defining a method of the struct: type user struct { name string age int } func(u *user) say() { // ... } Here we use `u`, but i still miss `this` feature, it does't mean i should use `this`, below is my idea: func (*user) say(){ // i

[go-nuts] Why there's no arithmetic process for sets?

2016-06-27 Thread Wang Yarco
First, i should say very sorry to you, guys. (It is also not for golang itself, but i think you may have interests on this. Just for some advice) Original Post When i'm reading something about sets operators, i feel strange when