This definitely seems worth experimenting with. big-bang does (can,
really) create bitmaps itself. It gets 2htdp/image images from the
user's program and then it can create a bitmap to draw them into
directly, if it wants to. It may already be creating a bitmap
explicitly, I'm not sure.
Robby
I’ve written a meta-language that adds function literal syntax to the reader,
inspired by Clojure and Rackjure’s shorthand function literals. It uses curly
braces for these literals, so #{+ 2 %} reads as (lambda (%) (+ 2 %)).
This actually works great, but I also want to add a feature that the
This program gives a confusing error message. Does anyone know why the xs
in the body doesn't have type (List Foo)?
The error message is much better if the return type is (Listof Integer).
It only complains about Foo being unbound instead of Foo unbound and got
a listof error.
;; ---
#lang
One solution would be to use `local-require`:
(((let () (local-require (only-in racket/function curry)) curry) + ) 2)
Sam
On Mon, May 11, 2015 at 3:24 PM, Alexis King lexi.lam...@gmail.com wrote:
I’ve written a meta-language that adds function literal syntax to the
reader, inspired by
On 2015-05-11 14:33:51 -0400, Benjamin Greenman wrote:
This program gives a confusing error message. Does anyone know why the
xs in the body doesn't have type (List Foo)?
It's because the type `Foo` is not defined, so it cannot have a sensible
representation. Erroneous types like this
At Mon, 11 May 2015 13:22:31 -0700, Alexis King wrote:
I’ve gotten my curly-fn meta-language
https://github.com/lexi-lambda/racket-curly-fn working, and it works great
within a module. However, evaluating #{+ 2} within the REPL just evaluates as
a
plain old vector, ignoring my readtable
I think we should at least make `(Listof Error)` turn into `Error`.
That would eliminate the error message than Ben reported.
Sam
On Mon, May 11, 2015 at 4:01 PM, Asumu Takikawa as...@ccs.neu.edu wrote:
On 2015-05-11 14:33:51 -0400, Benjamin Greenman wrote:
This program gives a confusing
On May 11, 2015, at 4:22 PM, Alexis King lexi.lam...@gmail.com wrote:
I’ve gotten my curly-fn meta-language working, and it works great within a
module. However, evaluating #{+ 2} within the REPL just evaluates as a plain
old vector, ignoring my readtable extension.
What gives? Using
On Mon, May 11, 2015 at 04:01:15PM -0400, Asumu Takikawa wrote:
On 2015-05-11 14:33:51 -0400, Benjamin Greenman wrote:
This program gives a confusing error message. Does anyone know why the
xs in the body doesn't have type (List Foo)?
It's because the type `Foo` is not defined, so
Perfect, thanks to both of you for your help. I’ve pushed a fix based on the
at-exp implementation.
I actually didn’t know about afl, but I’m pleased to see that it works
relatively similarly! I still like my syntax and auto-currying better, but I’m
biased. ;)
--
You received this message
Glad you're having a good time!
I think you should be able to use it to implement your language's
reader but I don't have any actual experience doing so.
I seem to recall that Racket used to come with a combinator parser
library. It's been removed but I don't remember why but maybe that
could be
This needs a lot of testing and probably some more work, but looks like
we can probably have an official OpenWRT package of Racket.
I now have Racket at least partly running (pending testing) on Netgear
WNDR3700v4 home WiFi router hardware, under the current official stable
OpenWRT image, at
12 matches
Mail list logo