ThreadSky
About ThreadSky
Log In
svjaneo.com
•
7 days ago
Writing some #golang code today. Feels so painful. Renaming a function to change it's visibility feels so wrong.
Comments
Log in
with your Bluesky account to leave a comment
[–]
mackuba.eu
•
7 days ago
Wait, what?
0
1
reply
[–]
svjaneo.com
•
7 days ago
Yep. Foo() is global but foo() is not, so changing the case of the first letter changes its visibility.
1
1
reply
[–]
mackuba.eu
•
6 days ago
ಠ_ಠ
0
reply
[–]
psionicalch.com
•
7 days ago
Yeah... It takes some getting used to. I end up having a lot more public functions than I need just because of the weird visibility rules 😂
0
1
reply
[–]
svjaneo.com
•
6 days ago
s/getting used to/tolerating/
I have done plenty of #golang when I was at Uber. Now that I've tasted the #rustlang sauce it's so painful to go back.
In golang, changing the visibility of a function means that EVERY caller now has to be changed. I won't be getting used to that.
5
reply
[–]
radmakr.com
•
7 days ago
Woah, I never thought about it like that.
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
I have done plenty of #golang when I was at Uber. Now that I've tasted the #rustlang sauce it's so painful to go back.
In golang, changing the visibility of a function means that EVERY caller now has to be changed. I won't be getting used to that.