3 ms·
> Because Golang has (to my knowledge) no support of any syntax that supports that. The single line was already demonstrated... > That's why you can write `lo
by 9rx 2y ago
> Because Golang has (to my knowledge) no support of any syntax that supports that.
The single line was already demonstrated...
> That's why you can write `loadMissiles(); fireMissles()` and it works.
Maybe.
func loadMissles() {
go func() {
// Do the things.
}()
}
Maybe not.
Get back to us when you gain at least a surface understanding of how computers work.
> See the pattern?
All that just to convert one type/value to another? That is complete and utter insanity.
Did you write this piece before reading the thread and decide to arbitrarily dump it upon us, totally oblivious to what is happening around you, to satisfy your sunk cost fallacy pangs?
- valenterry 2y agoWell, I tried. Have a nice day.
- 9rx 2y agoYou tried... something. I have no idea why you are inventing promises and whatnot just to apply a value conversion. Just because you can doesn't mean you should applies, perhaps?