Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for How many arguments were passed?

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
Apr 11, 2018 at 9:41 comment added Ismael Miguel I believe that all (or, at least, most of) the programming languages that do that do not have a very specific concept of a function. Batch, for example, has something that looks and (somewhat) works like a function. But is just a label pointing to some code. And in that case, I've already left my comment there.
Apr 11, 2018 at 9:01 comment added Shaggy @IsmaelMiguel, if that were indeed the case then many other solutions would also be invalidated. The norm is to allow solutions to be programmes or functions.
Apr 10, 2018 at 15:11 comment added Ismael Miguel Re-quoting the question: "Using your language of choice, write a function that takes a variable number of arguments and returns the number of arguments it was called with.". Your code doesn't contain functions.
Apr 10, 2018 at 14:59 comment added axiac The question explicitly requires a function that returns the number, does not display it: "...write a function that takes a variable number of arguments and returns the number of arguments."
Apr 10, 2018 at 14:31 history edited Shaggy CC BY-SA 3.0
added 31 characters in body
Apr 10, 2018 at 14:31 comment added Shaggy @IsmaelMiguel, see this consensus.
Apr 10, 2018 at 14:20 comment added Ismael Miguel I'm not so sure about this one (and it's validity) since it is the count of arguments passed to call PHP.
Apr 10, 2018 at 11:32 history answered Shaggy CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /