this would output `3, 3, 3`
this would output `3, 3, 3`
it’s easy to make mistakes because of integer overflows.
this is the reason why len returns a signed integer,
if it were a unint, in the code snippet below, the value of i will always remain positive because i will overflow.
example from The Go Programming Language book :)
it’s easy to make mistakes because of integer overflows.
this is the reason why len returns a signed integer,
if it were a unint, in the code snippet below, the value of i will always remain positive because i will overflow.
example from The Go Programming Language book :)
I wonder what other ways types as values can be useful in Go 👀
I wonder what other ways types as values can be useful in Go 👀
threads haven't launched yet though, let's wait 20 mins and try again
threads haven't launched yet though, let's wait 20 mins and try again
my dopamines are craving novelty
my dopamines are craving novelty