Dan Sugalski <[EMAIL PROTECTED]> writes:
At 10:06 AM -0700 6/16/04, Brent 'Dax' Royal-Gordon wrote:Dan Sugalski wrote:Which reminds me--we need to have a syntax to distinguish between key types.
Perl already gives us two of the three: Px[Iy] Px{Sy}
For the third, I suggest we extend the analogy: Px<Pz>
Except it breaks really really badly for multidimensional keys:
Px[S1:i;S2:s;P3:i]
Except it does not:
Px[S1]{S2}[P3]
Of course, that is not good for the syntactically diabetic ... but more readable to human eyes, IMO.
Yeah, but given that this code will be generated by compilers 90+% of the time... the assembly generation and parsing of the assembly's easier with the postfix notation.
--
Dan
--------------------------------------it's like this------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk