this post was submitted on 14 Aug 2023
24 points (100.0% liked)

Programmer Humor

19537 readers
296 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago (1 children)

Also Go: exceptions aren't real, you declare and handle every error at every level or declare that you might return that error because go fuck yourself.

[–] [email protected] 0 points 1 year ago (1 children)

Because that's sane and readable?

[–] [email protected] 0 points 1 year ago (1 children)

Wow. I'm honestly surprised I'm getting downvotes for a joke. Also, no. It isn't. It really isn't.

[–] [email protected] 1 points 1 year ago

It is better than in most languages with exceptions, except from languages like Java, that require you to declare that certain method throws certain error.

It's more tedious in Go, but at the end of the day it's the same thing.

When I use someone else's code I want to be sure if that thing can throw an error so I can decide what to do with it.