Why Nostr? What is Njump?
2024-07-08 20:14:54
in reply to

mleku on Nostr: i had a minor disagreement with Ian Lawrence Taylor about the idea that it's better ...

i had a minor disagreement with Ian Lawrence Taylor about the idea that it's better to name return values because it makes the intent and meaning of the API easy to see at a glance

i'm firmly of the opinion that certain things should just be always done and only when there's a reason, left out... like, one line functions, i like these, i see no sense in filling up space to just have "return x * 10" or somesuch

in fact a lot of Go programmers don't know this one

you can do this:

func someFunc(x, y int) int { return x * y }

versus

func somefunc(x, y int) int {
return x * y
}

yes, i had the disagreement about whether if and for statements should also allow this formatting

i don't like wasting screen space especially if it doesn't add any meaning to the text
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku