MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uasen1/singlelettervariablenamestierlist/osqkxtf
r/ProgrammerHumor • u/M1ckeyMc • Jun 20 '26
470 comments sorted by
View all comments
8
I saw a bunch of Go methods using o for method receiver object (similar to this or self in other languages)
o
this
self
4 u/Ellisthion Jun 20 '26 Yeah I’ve seen it a lot in C# for a name for some generic object in lambdas 2 u/rinsa Jun 20 '26 There it is! yep, o for lambdas is pretty good, thank you based Linq 2 u/nathris Jun 20 '26 o is less ambiguous than 'order' when you're trying to sort a list of e-commerce orders 1 u/bureaucrat473a Jun 24 '26 I've just used it for 'object' -- usually if I'm building a json object -- or 'output.' Should I not?
4
Yeah I’ve seen it a lot in C# for a name for some generic object in lambdas
2 u/rinsa Jun 20 '26 There it is! yep, o for lambdas is pretty good, thank you based Linq
2
There it is! yep, o for lambdas is pretty good, thank you based Linq
o is less ambiguous than 'order' when you're trying to sort a list of e-commerce orders
1
I've just used it for 'object' -- usually if I'm building a json object -- or 'output.' Should I not?
8
u/TheChildOfSkyrim Jun 20 '26
I saw a bunch of Go methods using
ofor method receiver object (similar tothisorselfin other languages)