So, I was, thinking about the way Common Lisp handles keyword
arguments. It's possible to declare a Lisp function as follows:

    (defun make-para ( content &key alignment font size color ) ...)

The point here is that the first argument is dealt with positionally,
and subsequent, optional args are dealth with as keyword arguments. It
seems to me that similar functionality might sit well with Perl 6, but
I'm not sure I can think of a good declaration syntax. Calling syntax
is easy:

    make_para $text, font => 'Helvetica,Arial,Whatever';

Any thoughts?

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to