Commit Graph

277 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
dca895c129 Minor edits to `for/vector' docs. 2010-09-09 17:08:09 -04:00
Will M. Farr
81b1ed6e8b New updates to for/vector, for*/vector, for/flvector and for*/flvector.
Now use for/fold to thread the index through the iteration form, so
that all variants can take advantage of the optional #:length
argument.  Previously, only the for/vector and for/flvector used the

The behavior when #:length does not match the number of iterations has
changed: iteration stops when either the vector is full, or the
requested number of iterations has been achieved, whichever comes
first.  If #:length is larger than the number of iterations performed,
then the remaining slots in the vector are filled with the default
argument of (make-vector ...), which is currently 0.
2010-09-09 16:23:04 -04:00
Will M. Farr
3d016150a3 Updates to for/vector, for/flvector forms and documentation.
- Now the faster forms take a #:length keyword to designate the length
  of the vector to pre-allocate.

- The for/[fl]vector forms take multiple body expressions and set the
  vector component to the value of the last one.

- When given a #:length argument, the for/vector and for/flvector
  forms check that the iteration is not exceeding the given length,
  raising exn:fail if it does.

- Test cases for the multiple body expressions and the exception for
  excessive iterations have been added.

- Doc modifications to bring the docs in line with the new forms.

- Doc modifications to note that the #:length versions of the form
*may* all the computation to be performed more efficiently, and
stating that it "is an error" if the given length-expr does not
produce a valid length for a vector that matches the number of
iterations for the loop.

- Note that no test is made for a number of loop iterations that is
  smaller than the given vector length.  Also, the for*/[fl]vector
  forms do not optimize when given a #:length argument.  These are
  areas for future improvement.
2010-09-09 16:22:53 -04:00
Robby Findler
2d1c4d1601 adjusted the guide to use ->i instead of ->d 2010-09-09 14:21:35 -05:00
Eli Barzilay
8e0f8dd39c More "~n" -> "\n" changes 2010-08-26 12:11:00 -04:00
Matthew Flatt
68860526e5 doc x-ref clarifications 2010-08-24 05:39:47 -06:00
Will M. Farr
82096abb1b Added interation forms for/vector, for*/vector, for/flvector, and for*/flvector and for-clause in-flvector. 2010-08-19 18:45:13 -04:00
Matthew Flatt
5d584e5d26 doc typo 2010-08-19 13:21:59 -06:00
Robby Findler
f8f3ddbc94 typo. closes pr 11052 2010-07-27 14:38:43 -05:00
Matthew Flatt
787bd61e33 fix mismatch between five.rkt code and Guide prose
Merge to 5.0.1
2010-07-24 20:43:17 -05:00
Eli Barzilay
bb6a109e98 guide typo 2010-07-12 21:38:52 -04:00
Matthew Flatt
519d1ef8d1 make compiler slightly smarter about 0-value letrec-values bindings
which corresponds to code generated from experession that are
 mixed with internal definitions
2010-07-07 13:56:16 -06:00
Matthew Flatt
54216b5ced internal-definition contexts allow expressions mixed with definitions
while the new `#%stratified-body' form provides access to the old
 convention
2010-07-07 13:56:16 -06:00
Matthew Flatt
cd95e082d7 fix guide's use of current-directory at compile time 2010-06-30 10:40:03 -06:00
Robby Findler
be38b69820 typo 2010-06-30 11:26:50 -05:00
Matthew Flatt
2dd8edf73d doc typo and clarification 2010-06-28 07:18:19 -06:00
Matthew Flatt
0107404cee fix typo
Closes PR 10996
2010-06-26 13:53:30 -06:00
Robby Findler
924cee89c6 attempted to clarify the first example on eval 2010-06-17 13:02:37 -05:00
Sam Tobin-Hochstadt
16391dda3d Fix Scheme/Racket typo. Closes PR 10965. 2010-06-08 12:05:58 -04:00
Robby Findler
89be620f17 wording clarification 2010-06-05 17:23:37 -05:00
Sam Tobin-Hochstadt
dfb4916f10 Fix more references to Scheme. 2010-06-04 16:40:00 -04:00
Matthew Flatt
3b4a950014 tweak Guide repair
Merge to v5.0
2010-05-30 15:05:00 -06:00
Eric Hanchrow
ab025cbf47 Fix some typos 2010-05-30 04:11:57 -04:00
Jay McCarthy
00f143a060 Fixing one typo of David's 2010-05-28 14:47:54 -06:00
David Van Horn
22e2f3061f Various typo, spelling, and punctuation fixes in scribblings.
Signed-off-by: David Van Horn <dvanhorn@ccs.neu.edu>
2010-05-28 14:47:54 -06:00
Eli Barzilay
28946a0a43 More reformatting 2010-05-21 20:41:35 -04:00
Matthew Flatt
0c2c992bf4 reorder and revise dialects section of guide 2010-05-21 07:16:18 -06:00
Matthew Flatt
6f733e96b7 document and index .zo extension in Guide
merge to 5.0
2010-05-19 15:10:46 -06:00
Eli Barzilay
7b14a1f585 "Racunit" -> "Rackunit" 2010-05-17 12:07:32 -04:00
Eli Barzilay
28998cfe11 Remove redundant file 2010-05-17 09:57:03 -04:00
Matthew Flatt
322a045a51 improve guide chapter on language creation (based on Matthias's comments) 2010-05-16 17:28:56 -06:00
Eli Barzilay
2d9601089d A lot of "MzScheme" -> "Racket"s. 2010-05-16 18:26:26 -04:00
Eli Barzilay
418b05b8ff Fix a few typos 2010-05-15 21:03:35 -04:00
Matthew Flatt
aa9a8549ad finish Guide chaper on defining languages 2010-05-14 13:34:23 -06:00
Matthew Flatt
88fd429eaf initial cut at language-creation chaper in guide: reader extension 2010-05-14 11:33:08 -06:00
Vincent St-Amour
0837e47ce7 Fixed a typo in the regexp doc. 2010-05-13 17:12:36 -04:00
Sam Tobin-Hochstadt
9ccd44e8fd rackety TS docs 2010-05-09 12:35:59 -04:00
Matthew Flatt
420ea6ee09 convert racket value printer to constructor+quote style; update Guide and Quick 2010-05-06 14:57:15 -06:00
Matthew Flatt
0f8c152b6d drscheme manual -> drracket manual; speed up raco setup pre-bootstrap 2010-05-04 11:49:41 -06:00
Matthew Flatt
166b92f9c8 replace mzc and setup-plt docs with raco doc (which refers to the still-separate planet doc) 2010-05-02 11:04:48 -06:00
Matthew Flatt
e504acb726 use .rktl suffix for files meant to be 'load'ed 2010-05-01 09:58:16 -06:00
Jay McCarthy
645b0b06fe Merge branch 'master' of git.racket-lang.org:plt 2010-04-30 10:57:38 -06:00
Jay McCarthy
bc5cf30ebe Renaming rktunit to racunit 2010-04-30 10:57:32 -06:00
Matthew Flatt
162058036e fully rackety guide 2010-04-30 08:02:57 -06:00
Matthew Flatt
2f5b166073 more rackty guide, through the contracts section 2010-04-29 17:11:42 -06:00
Jay McCarthy
f70ffca756 Renaming schemeunit to rktunit and adding compat layer 2010-04-29 15:00:02 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthew Flatt
1fedf04739 partly rackety guide 2010-04-27 14:09:51 -06:00
Eli Barzilay
6977f08878 typo (PR 10754)
svn: r18704
2010-04-01 07:33:55 +00:00
Matthew Flatt
2ddfa89a7a add missing doc files
svn: r18401
2010-03-01 01:45:49 +00:00