niya‎
banner
niya.blue
niya‎
@niya.blue
🏳️‍⚧️ she/her
Developer at MagicBell (YC W21)
TIL: pre-Go 1.22, closures inside for loops would share the same value for a variable.

this would output `3, 3, 3`
May 23, 2025 at 7:53 AM
explanation:

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 :)
April 28, 2025 at 6:31 PM
meet Freya, she’s a pet of a friend of mine 💙
April 28, 2025 at 5:54 PM
Go functions can take type as a parameter and return it...

I wonder what other ways types as values can be useful in Go 👀
November 18, 2024 at 1:12 PM
here's a cat i clicked last month
November 10, 2024 at 10:27 AM
oh no
November 9, 2024 at 10:03 AM
🤦🏽‍♀️ that’s the state i live in

source: www.hindustantimes.com/india-news/n...
November 8, 2024 at 8:46 AM
did you move today anon? 💪🏼
November 5, 2024 at 4:52 PM
i love blusky as well!
November 3, 2024 at 10:54 AM
;-;
November 3, 2024 at 10:51 AM
neat! it redirects to google translation and also tells me if I am writing a post in the wrong language
October 31, 2024 at 6:40 PM
uncool.

threads haven't launched yet though, let's wait 20 mins and try again
July 5, 2023 at 6:11 PM
instagram branding, it's not black and white after all but I would have loved a new branding

my dopamines are craving novelty
July 5, 2023 at 6:09 PM