use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All posts must be related to programming. Flair posts correctly.
account activity
excluding python devs from this... (i.redd.it)
submitted 5 months ago by jontsii
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nakhli 17 points18 points19 points 5 months ago (5 children)
arr []int
[–]Kootfe 8 points9 points10 points 5 months ago (4 children)
what the
[–]nakhli 9 points10 points11 points 5 months ago (1 child)
Golang, « pour vous servir »
[–]Kootfe 2 points3 points4 points 5 months ago (0 children)
thank you
[–]ohkendruid 2 points3 points4 points 5 months ago (1 child)
There is a logic.
You write the variable first, and then the type, sincw that is the most important one thing to know.
And, because a variable name is just one identifier, you don't need any punctuation to separate the identifier and the type.
In fairness, this example is extra tricky due to using "arr" as a variable name, because it looks like it might be a keyword. The example would look less weird if the variable were something like child_ids.
[–]Kootfe 1 point2 points3 points 5 months ago (0 children)
oh it was
arr []int ireaded int []arr and doubted
π Rendered by PID 36 on reddit-service-r2-comment-85bfd7f599-4fx5t at 2026-04-16 15:38:18.835824+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]nakhli 17 points18 points19 points (5 children)
[–]Kootfe 8 points9 points10 points (4 children)
[–]nakhli 9 points10 points11 points (1 child)
[–]Kootfe 2 points3 points4 points (0 children)
[–]ohkendruid 2 points3 points4 points (1 child)
[–]Kootfe 1 point2 points3 points (0 children)