In Python it is possible to have named arguments to functions. I have always appreciated this as this forces programmers to encode knowledge in source code at the function call, as opposed to either referring to the function declaration or getting that information supplied through the IDE.<p>One (very generic) example of this would be<p><pre><code>    f(foo=bar) 
</code></pre>
which I would expect to be easier to grok as soon as foo and bar is replaced by something of substance.<p>I have played with emulating this concept in Java, and have included a snippet which shows this concept alongside a more traditional Java-esque snippet of code.<p>The enum declaration MUL showcases the &quot;new&quot; approach and the more classical approach is demonstrated by SUB.<p>(continued in comments)
Feedback requested: Literate programming in Java