How do you read `*args` out loud in the context of a #Python function signature?

PLEASE reply with how you'd read it, I'm trying to prove someone wrong 🀣

Boosts are appreciated :D

For example, I read it as β€œstar args”.

@mathsppblog if I read it in my head, I think I just say "args". But if I read it to someone else, I'll say "star args".

(Same with **kwargs/kwargs/star star kwargs by the way)

@bmispelon @mathsppblog Kind of the same for me - in my head it's just "args", but if I'm talking to someone where there is any chance it might be misunderstood, I'll usually say "positional arguments" or something explicit.

#Python

@diazona @bmispelon but what if you're dictating something like `f(*args)` to someone? What would you say?

@mathsppblog depending if it's clear in the context, either:
- eff star args
- eff open parenthesis star args close parenthesis

Or maybe even:

- eff of star args (after the mathematical way of reading "eff of x" for f(x) )

@mathsppblog @bmispelon I can't remember ever actually being in a position to dictate that to someone, but I imagine saying "a function f that takes any number of positional arguments" if I want to be fully clear, or perhaps "f args" or "f of args" or "f of star args" if there's enough existing context that it would be understood what I mean (although that's probably not "dictation").
@mathsppblog "star args", with the latter pronounced with the same sound as the start of "arguments"
@mathsppblog β€œargs”
@eddiereasoner but what if you're dictating something like `f(*args)` to someone? What would you say?
@mathsppblog function β€œf” with… wildcard arguments? Not sure if the terminology is correct. I’m sure the Python docs (would not recommend) could help.
@mathsppblog I just read it as "args"
@Kroppeb but what if you're dictating something like `f(*args)` to someone? What would you say?
@mathsppblog
mmh call site I might read it as "star args" yeah. Or maybe "args, I mean like star args you know right"
@Kroppeb yeah, that's what I expected
@mathsppblog I am a Rubyist, so I would say β€œsplat args”.

@mathsppblog honestly a bit like a pirate. Arrrgs. Not super long but more than args .

I didn’t even notice or consider the star until reading the comments of others.

@pwloftus that's hilarious! The pirate stuff, I mean πŸ˜‚

What if you're dictating something like `f(*args)` to someone? What would you say?

@mathsppblog I think that would change slightly and maybe be context dependent.

Someone familiar with python probably β€˜farrgs’ just slightly extended.

Dictation desiring all characters captured and unsure if fargs would be understood.
Ef paren star eh are gee es close paren.

I might slip up and say the word function instead of f.

If we’re talking kwargs… at this point I feel I should just be silly and go:
GWARS! and flash these: 🀘

@mathsppblog

Stargs, Quargs and Arguv. Same for C and kowt and ker rbh

@doctormo You lost me at β€œkowt”. What's that? And ker and rbh?

@mathsppblog I have heard people say, "star args" enough times to probably say that to Python devs.

In the real world, I would say, "the asterisk symbol args" because we are not monsters.

@webology @mathsppblog

def foo(⭐args, ⭐⭐kwargs):
pass

@bmispelon @mathsppblog *️⃣args and *️⃣*️⃣kwargs but it's pronounced "emoji asterisk args" and "emoji asterisk asterisk kwargs"

I think we invented a new programming language.

I think πŸ™ˆ could be private variables. πŸ€”

@webology @bmispelon I'm on board with making πŸ™ˆ private variables.

Then, how about 🌍 for global variables?

@mathsppblog @bmispelon ✊ I think we are on to something. For Django, I want 🐘 for calling PostgreSQL code directly. 🐬 would work for MySQL if I ever used it (I don't), but we can make this work.
@webology @bmispelon you can create the repo; please add me as a collaborator: rodrigogiraoserrao is my GH username. πŸš€

@mathsppblog @bmispelon I think we need to kickstart a new programming keyboard ⌨️ where every emoji of our language has a dedicated key.

That way, with every major language upgrade, we make money from selling them a bigger keyboard. πŸ’Έ

@mathsppblog "*args" is "splat args" for me.

By extension "** args" is "splat splat args". Obviously.

@ax6761 interesting! Where do you get the β€œsplat” from?

@mathsppblog I certainly met "splat" outside of Python; could have been ...

Perl 5’s list-flattening and reference-taking design choices, 20171129,
by Aristotle,
https://blogs.perl.org/users/aristotle/2017/11/perl5-refs-flattening.html

... where I might have picked it up.

Perl 5’s list-flattening and reference-taking design choices | Aristotle [blogs.perl.org]