Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • 2
    These are two rather unrelated questions: (1) Should you write out optional arguments for clarity? (2) Should one useboolean method arguments, and how? Commented Jan 19, 2016 at 10:47
  • 5
    This all boils down to personal preference/style/opinion. Personally, I like parameter names when the value passed in is a literal (a variable might already convey enough information through its name). But, that's my personal opinion. Commented Jan 19, 2016 at 10:54
  • 1
    maybe include that link as an example source in your question? Commented Jan 19, 2016 at 10:56
  • 4
    If it adds anything, I ran it thru StyleCop & ReSharper - neither had any clear view on it. ReSharper simply says the named parameter could be removed and then goes on to say a named parameter could be added. Advice is free for a reason I guess... :-/ Commented Jan 19, 2016 at 12:00
  • 4
    Possible duplicate of Named arguments (parameters) as a readability aid Commented Jan 19, 2016 at 13:37