Re: Required Named Params and "go write your own grammar"

2004-05-04 Thread Abhijit A. Mahabal
On Tue, 4 May 2004, Luke Palmer wrote: > Abhijit A. Mahabal writes: > > Needing to know "the entire P6 grammar" isn't mouth watering. > > grammar Grammar::ReqNamed { > is Grammar::Perl; Ah, I see. That does answer my question. I had forgotten that grammers can be inherited from and y

Re: Required Named Params and "go write your own grammar"

2004-05-04 Thread Luke Palmer
Abhijit A. Mahabal writes: > As I try writing P6 programs I do find myself needing required named > params, and I thought I'd like something like ++$named_req for myself as a > shorthand for "+$named_req is required" or whatever is decided. > > Now, larry often says (only partly jokingly) "go writ

Re: Required Named Params and "go write your own grammar"

2004-05-04 Thread Juerd
Abhijit A. Mahabal skribis 2004-05-04 10:27 (-0500): > As I try writing P6 programs I do find myself needing required named > params, and I thought I'd like something like ++$named_req for myself as a > shorthand for "+$named_req is required" or whatever is decided. What's wrong with just specifyi

Required Named Params and "go write your own grammar"

2004-05-04 Thread Abhijit A. Mahabal
As I try writing P6 programs I do find myself needing required named params, and I thought I'd like something like ++$named_req for myself as a shorthand for "+$named_req is required" or whatever is decided. Now, larry often says (only partly jokingly) "go write your own grammar". But I do not kno