ef079d5e08
Python 3 supports keyword-only arguments as described in the immortal PEP 3102. This commit implements keyword-only argument support for Hy using a `&kwonly` lambda-list-keyword with semantics analogous how `&optional` arguments are handled: `&kwonly` arguments are either a symbol, in which case the keyword argument so named is mandatory, or a two-element list, the first of which is the symbolic name of the keyword argument and the second of which is its default value if not supplied. If Hy is running under Python 2, attempting to use `&kwonly` args will raise a HyTypeError. This effort is with the aim of resolving #453. |
||
---|---|---|
.. | ||
contrib | ||
__init__.hy | ||
cons.hy | ||
core.hy | ||
defclass.hy | ||
language.hy | ||
mathematics.hy | ||
native_macros.hy | ||
py3_only_tests.hy | ||
quote.hy | ||
reader_macros.hy | ||
shadow.hy | ||
unless.hy | ||
when.hy | ||
with_decorator.hy | ||
with_test.hy |