Thanks,
Your report shows even weirder things.
Best wishes, Jos
De: Gustavo Massaccesi
Enviado el: 21 September 2019 13:33
Para: Jos Koot
CC: Racket-Users List
Asunto: Re: [racket-users] scribble defproc looses parenthesis
It looks like an error to me. I made a bug report in
https
It looks like an error to me. I made a bug report in
https://github.com/racket/scribble/issues/211 because it is easy to track
the problem there.
You can subscribe to the issue to get any update, or I can try to remember
to post any (big) update here.
Gustavo
On Sat, Sep 14, 2019 at 2:05 PM Jos
Hi
File bug.rkt
#lang racket
(define (make-proc) (λ (x (y #f)) (void)))
(provide make-proc)
File bug.scrbl
#lang scribble/manual
@(require
scribble/core
scribble/eval
racket
"bug.rkt"
(for-label racket "bug.rkt")
(for-syntax racket))
@(defmodule "bug.rkt" #:packa
I came up with a fairly boring example that does use places. Note that you
have to put this in a module and save the file:
> #lang racket
> (require racket/serialize
> web-server/lang/serial-lambda
> )
> (define current-place
> (make-parameter 'initial))
> (define (main)
> (d
For a quick example (without places), if you enter this in the definitions
window of Dr. Racket:
> #lang racket
> (require web-server/lang/serial-lambda
> racket/serialize
> )
> (define serialized-proc
> (serialize (serial-lambda (x)
>(printf "Your number is: ~a
Strangely I can't get the example working from the docs and serial lambda isn't
a cakewalk ether. So if you got a working example please share it!
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving
> On Jan 16, 2017, at 00:31, Andreas Olsson wrote:
>
> I've never done serialisation befor. I have to learn that then. :-)
Well, quoting is one form of serialization, so in some sense, you *have*… I
would definitely echo others, though, in suggesting that using ‘eval’ here is a
not-at-all-goo
I've never done serialisation befor. I have to learn that then. :-)
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
Fo
I would strongly consider using serial-lambda (from the web server
libraries:
http://docs.racket-lang.org/web-server-internal/closure.html?q=serial-lambda),
which creates a procedure that can be serialized using racket/serialize and
sent to a place, rather than (I assume) relying on eval. Alternati
The function sends the lambda to a place, and places don't accept procedures,
so a quoted lambda is the only option.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
Are you sure you want a "quoted lambda", and not what might be called in
Racket a "procedure" or "closure"?
For `defproc`, you can use the type `procedure?` for a
procedure/closure, or you can be more specific about the type of the
procedure/closure (see the documentation for `->` in Racket co
> On Jan 15, 2017, at 09:23, Andreas Olsson wrote:
>
> I have function that demand a quoted lambda as an argument, how would you
> write that in defproc?
I think that—unlike the contract system, or typed racket—you can put pretty
much anything you want in the “type/contract” slot of a defproc
I have function that demand a quoted lambda as an argument, how would you write
that in defproc?
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+un
13 matches
Mail list logo