[Pre-RFC] named arguments

I personally use the enum MyCondition { Yes, No } approach (with the variants named like so) when adding such code in rustc. I find the practice quite robust (more than named arguments would provide for) and self-documenting. It also provides a good place to leave doc-comments when I feel that additional information is necessary.

4 Likes