Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Where can I find some references concerning when to use options and when to use multiple arguments in designing and writing functions?

Seems most built-in functions have arguments less than 3 and with a large number of options.

Are you confusing at the choice of using arguments or options?

And sometimes too many arguments which are ordered, the bad thing is that we may forget how to pass parameters with the right order. This is saying that, when using options, we don't care the order of options, just pick the ones needed.

Sometimes multiple arguments could be combined to one list argument.

Sometimes multiple arguments are convenient to be implemented into the rough/original demo functions.

Sometimes multiple arguments are more frequently used in some of my short-run functions.

Sometimes options will be added to some of my old functions, and especially long-run functions.

Sometimes options can be well inherited and translated from different functions.

share|improve this question
    
here could be a start: mathematica.stackexchange.com/a/16615/2448 –  Stefan Jun 28 '13 at 12:39
    
This is asking for opinions which is explicitly not permitted by StackExchange rules. I also think it is too broad a question, another reason for closing it. –  m_goldberg Jun 28 '13 at 13:01
    
@m_goldberg well, where are such questions more suitable to be asked? Actually if someone know one book about this topic? or duplicates discussions about this topic is welcome. Sorry for my ignorance of rules. –  HyperGroups Jun 28 '13 at 13:11
    
You could bring it up in chat. The rules are more relaxed there. –  m_goldberg Jun 28 '13 at 13:13
    
@m_goldberg Ok, Let me try that. –  HyperGroups Jun 28 '13 at 13:22
show 4 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.