Front page | perl.perl6.language.data |
Postings from August 2000
Upcoming RFC's...
Thread Next
From:
Buddha Buck
Date:
August 31, 2000 13:09
Subject:
Upcoming RFC's...
Message ID:
4.3.2.7.0.20000831154921.00c4b400@armstrong.cse.buffalo.edu
If I'm stepping on toes here, please tell me...
Here are some suggestions for some upcoming language-data RFC's I'm
thinking of writing:
RFC 169v2: Matrix Indexing
Cover my $matrix[$x;$y;$z] syntax
Add Jeremy's $matrix[$listref] syntax
Discuss why two ways of doing it.
Move index iterators to new RFC
Move matrix slicing to new RFC
Move @#matrix to new RFC
RFC X: Matrix Slicing
Cover @matrix[@x,@y,@z] syntax
Cover @matrix[@listoflistrefs] syntax
Discuss how they are different, with examples.
RFC X+1: Matrix Index Iterators
Explain the issue
Present ^i,^j syntax (and why IMHO it has problems)
Present @* syntax (and why IMHO it is ugly ;-) )
Ask for better alternatives.
RFC X+2: Retrieving Matrix dimensions
Present @#matrix as analogous to $#array
Discuss what $#matrix should return, as well as @#array
What is @matrix in scaler context? (undef, anyone?)
This covers (and slightly expands on) the "consensus proposals" we have
achieved (I believe). I'll post these tonight, and if there are no
problems, I think we can probably quickly freeze RFC169 and RFC X. The
others might have more discussion.
I think Jeremy should also post an RFC detailing his LOL syntax extensions
for accessing matrix elements.
A new proposal:
RFC X+3: Flattening Matrices
Present @array = flatten(@matrix), which returns the elements of @matrix
as a 1-dimensional (sparse) array.
Discuss the efficiency of this
How to undo?
A needed RFC that I'm not confident to write, but I feel it is needed:
RFC X+4: Syntax for Matrix Literals.
Thread Next
-
Upcoming RFC's...
by Buddha Buck