I've pushed a script for globbing to the package server. It exports two
functions, `glob` and `in-glob`. I hope that some day functions like these
can be in racket/file, but until then, enjoy.
(glob "./files/*.rkt")
Returns a list of all files ending with the .rkt extension in the directory
"files
On Mar 30, 2015, at 10:16 PM, Robby Findler wrote:
> On Monday, March 30, 2015, Alexander D. Knauth wrote:
> Well the point of using the configure-runtime was that it would run when it
> was the “main" program so that exact-decimals would work in the repl, but if
> this file was required as a
On Monday, March 30, 2015, Alexander D. Knauth wrote:
> Well the point of using the configure-runtime was that it would run when
> it was the “main" program so that exact-decimals would work in the repl,
> but if this file was required as a library, it wouldn’t set the parameter
> for the other p
Well the point of using the configure-runtime was that it would run when it was
the “main" program so that exact-decimals would work in the repl, but if this
file was required as a library, it wouldn’t set the parameter for the other
program.
But should the tests be thought of as the “main” pro
I believe the intention of configure-runtime is that it runs only when
your file is run as the main program and not when your program is run
as a library (via require). So I don't think you can use that facility
to implement the exact-decimal language.
Robby
On Mon, Mar 30, 2015 at 8:56 PM, Alexa
For my exact-decimal meta-language, I had some tests that depend on the
read-decimal-as-inexact parameter being set to #f by configure-runtime.
It seems like raco test isn’t running that before running the tests. Is that
intentional?
(by the way the tests are not within a test submodule)
--
On Mar 30, 2015, at 1:58 PM, Alexis King wrote:
> The check-equal? function and friends don't do anything special to delimit
> control, so failing a check will abort the whole program if it isn't
> contained within a test case. You can use the test-case or test-begin forms
> to limit the exte
The check-equal? function and friends don't do anything special to delimit
control, so failing a check will abort the whole program if it isn't contained
within a test case. You can use the test-case or test-begin forms to limit the
extent of fail-check (which just raises an exn:test:check excep
I’m writing a test suite, and I’d like a way to abort a test without aborting a
test suite. It looks to me like “fail-check” is supposed to do this. Here’s
the code I wrote:
#lang racket
(require rackunit)
(define (f x)
(fail-check "foo")
(/ 1 0))
(check-equal? (f 3) 4)
(check-equal? 9 1
Cool, I have a little snip now that I have a precedure and an input value and
when I click I can increment the input val and display the re-evaluated
expression. One thing I'd like to add are some controls like a slider or
buttons. I know I could just draw something my self and handle clicks mys
I understand that the preamble of an XML file (e.g., a first line like ) is not part of the X-expression representing
that file.
That's why in `response/xexpr`, there's an option for adding a preamble. [1]
But with static XML files, I'm unclear about how preambles are supposed to be
handled. U
After a long time without updating my packages, I may have forgotten how to
do it properly.
On pkgs.racket-lang.org, once logged in, I'm clicking on one of my
packages' names (say bazaar), and change something (say, the Description).
Then I press Enter, focus on something else, click the cross to
You need to provide a running program, including inputs.
(You may also wish to read the style guide for Racket.)
On Mar 26, 2015, at 10:39 AM, chia kang ren wrote:
> http://pasterack.org/pastes/75790
> http://pasterack.org/pastes/11360
> http://pasterack.org/pastes/10455
--
You received th
Thanks. Fixed -- Matthias
On Mar 30, 2015, at 8:32 AM, Daniel Bastos wrote:
> Matthias, at least in this new address the PDF is a broken link. It currently
> points to
>
> http://www.ccs.neu.edu/home/matthias/manifesto/manifesto.pdf
>
> which yields a "file not found" answer upon reques
Matthias, at least in this new address the PDF is a broken link. It
currently points to
http://www.ccs.neu.edu/home/matthias/manifesto/manifesto.pdf
which yields a "file not found" answer upon request.
On Sat, Mar 28, 2015 at 11:03 AM, Matthias Felleisen
wrote:
>
> Now that the scribble is m
15 matches
Mail list logo