Tag: arguments

C default arguments

The Question : 289 people think this question is useful Is there a way to specify default arguments to a function in C? The Question Comments : just want a slightly better C, not C++. think C+ . with a variety of small improvements lifted from C++, but not the big mess. And, please, no

Is there a better way to do optional function parameters in JavaScript?

The Question : 829 people think this question is useful I’ve always handled optional parameters in JavaScript like this: Is there a better way to do it? Are there any cases where using || like that is going to fail? The Question Comments : openjs.com/articles/optional_function_arguments.php That’s interesting. Passing arguments as an associative array seems like