Re: [racket-users] manifesto move

2015-03-30 Thread Matthias Felleisen
Thanks. Fixed -- Matthias On Mar 30, 2015, at 8:32 AM, Daniel Bastos dbas...@toledo.com 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

[racket-users] reading writing the preamble of an XML file

2015-03-30 Thread Matthew Butterick
I understand that the preamble of an XML file (e.g., a first line like ?xml version=1.0 encoding=utf-8?) 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

Re: [racket-users] Custom repl UI widgets

2015-03-30 Thread Steve Olsen
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

[racket-users] abort test but not test suite?

2015-03-30 Thread 'John Clements' via users-redirect
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

Re: [racket-users] abort test but not test suite?

2015-03-30 Thread Alexis King
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

[racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Alexander D. Knauth
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) --

Re: [racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Robby Findler
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,

Re: [racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Alexander D. Knauth
On Mar 30, 2015, at 10:16 PM, Robby Findler ro...@eecs.northwestern.edu wrote: On Monday, March 30, 2015, Alexander D. Knauth alexan...@knauth.org 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

Re: [racket-users] raco test doesn't run configure-runtime?

2015-03-30 Thread Alexander D. Knauth
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”