Hi Ryan,
Hope you enjoyed the snow day. Lost power here for a while, but
fortunately no damage.
On 3/13/2017 11:09 PM, Ryan Culpepper wrote:
On 03/13/2017 06:30 PM, George Neuner wrote:
Then there is the issue that deliberately prepared queries are not
optimized as heavily as normal queri
If you want it to be part of the continuation without having to pass it
around as an argument, check out web cells (
http://docs.racket-lang.org/web-server/stateless.html?q=web-server%2Flang%2Fwe#%28mod-path._web-server%2Flang%2Fweb-cells%29)
or web parameters (
http://docs.racket-lang.org/web-serv
Thanks for the detailed answer Philip! Some of it is definitely over my
head. The reason I don't pass around the id is that I use the html field
exactly to track the id and wanted to avoid having to pass around the
argument left and right - and the only ways to pass it on are via forms or
by sticki
You get the dreaded "bad syntax" because syntax-parse doesnt know
which pattern failed. There a couple of things you can do:
1) Use a commit pattern, which tells syntax-parse not to backtrack
past the commit point. You have to change the order of patterns for
this to work.
(define-splicing-synt
In this case it will work despite being a hack, because you know that your
id argument affects only the display stage, not the processing stage:
however, you can't know in general that this will work for dynamically
generated formlets, and personally I would therefore be reluctant to rely
on this,
Hi -
I have some legacy code syntax I'm retrofitting with syntax-parse. Is there a
simple way to have this type of syntax error report a better error message:
http://pasterack.org/pastes/59739
I'd like it to point directly to ":thung" and say it expected ":thing" or
nothing there if possible.
Fair enough if that's the specification, even if it is unexpected (to me at
least). Thanks,
Marc
On Tuesday, March 14, 2017 at 10:41:02 AM UTC-4, Jay McCarthy wrote:
> Hi Marc,
>
> libxml2 only allows numeric entity references in this range:
>
> * [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] |
Hi,
I have created a formlet like so:
(define (matrix-formlet id)
(formlet
(#%# ,{input-string . => . ones}
,{(to-string (required (hidden id))) . => . user-id}
)
(values ones user-id)))
I display this as follows:
`(form
((action "/the-matrix-su
You need to compile Racket from source to generate the .lib file, it is not
distributed with the installation.
You need to make sure the source is the same version as your installed Racket
and it is compiled targeting the same bit architecture as the installed Racket
version. Then copy the gene
Hi Marc,
libxml2 only allows numeric entity references in this range:
* [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
* | [#x1-#x10]
Racket doesn't fully respect that, but both disallow 0. I think we
should match libxml2 and tighten the contract.
Jay
--
-=[ Jay Mc
I understand that the number 1 is different from the string (although I would
probably have expected it to be turned into a string before being passed to the
browser or something, but it doesn't matter for my purposes). What does
surprise me is that (xexpr->string 1) gives , yet (xexpr->string 0
Thank you!
I see now that the very same question was already asked on this list in 2015,
by a compatriot of mine no less. It didn't show up in my online searches
beforehand, the keyword missing was "transformer environment".
On Tuesday, March 14, 2017 at 1:05:31 PM UTC+1, Philip McGrath wrote:
#lang racket also provides racket/base in the transformer environment.
-Philip
On Tue, Mar 14, 2017 at 5:45 AM, NeverTooOldToCode
wrote:
> From Fear of Macros again, all input in the DrRacket definition window.
>
> This works:
>
> #lang racket/base
>
> (require (for-syntax racket/base))
>
> (de
The ACM Student Research Competition (SRC), sponsored by Microsoft
Research, offers a unique forum for undergraduate and graduate students
to present their original research on programming language design,
implementation, theory, applications, and performance at PLDI 2017. The
goal is to give
>From Fear of Macros again, all input in the DrRacket definition window.
This works:
#lang racket/base
(require (for-syntax racket/base))
(define-syntax (show-me stx)
(display stx)
#'(void))
If you mouse-hover over the keywords, define-syntax is imported from #lang
racket/base, and displa
15 matches
Mail list logo