Although I don't recall for HtDP, the convention I've seen in Racket
and docs generally is to use square brackets for an optional argument
in the sense you mean: A single argument that's present or not. For
instance:
;; ArgType [OptionalArgType] ArgType -> ResultType
Whereas I would read "foo ...
On Aug 23, 2013, at 12:28 AM, Alexander D. Knauth wrote:
> Right now I'm using Intermediate Student Language, not Racket
>
> I was wondering if I could define a function with optional arguments
In ISL+ you cannot defined variable-arity functions. In Racket there are many
mechanism for doing s
One more point: we are in the process of re-arrange the code
base so that it uses the package system just like any outside
contributor does. We already run every git-push thru a complete
test engine called drdr, and all contributed packages may opt
into this mechanism (so that any change will te
On Fri, Aug 23, 2013 at 2:09 AM, Chad Albers wrote:
> From the many responses, it looks like Dr Racket is more popular than
> I thought. I'm a long-time Emacs user, and although I have tried Dr
> Racket, Emacs is now part of my bones. (I'm excited to learn that
> there is a Racket mode...and hop
--On 23 août 2013 15:09:04 +0900 Chad Albers wrote:
From the many responses, it looks like Dr Racket is more popular than
I thought. I'm a long-time Emacs user, and although I have tried Dr
Racket, Emacs is now part of my bones. (I'm excited to learn that
there is a Racket mode...and hope it
Hi Dane,
Thanks for working on this.
If you look at line 106 of the definition of define-opencl-info, it
uses the _arg_type as the name of the selector's arguments. I think
you could safely replace that with arg_id, if not, then you would want
to create new ids with generate-temporaries, but try
I've just changed the default colors in drracket in a way that makes things
look quite different to my eye, but also should make them work much better
for the color blind. (I sat down with someone that has color blindness and
fiddled around).
If you want to try out the new colors but you've got th
Student project idea: Emacs color theme importer.
On Fri, Aug 23, 2013 at 11:41 PM, Robby Findler
wrote:
> I've just changed the default colors in drracket in a way that makes things
> look quite different to my eye, but also should make them work much better
> for the color blind. (I sat down wi
Great! I'll give that a shot tonight. I'm hoping I can have the context
sharing done sometime in the next couple days. I'll plan on sending you
a pull request via Github.
Thanks for the help,
Dane
On 8/23/13 9:29 AM, Jay McCarthy wrote:
Hi Dane,
Thanks for working on this.
If you look at li
The new net/http-client library addresses the problems in this thread.
Jay
On Sat, Jul 13, 2013 at 8:07 PM, Eli Barzilay wrote:
> Regardless of specs, it's useful to be able to talk to servers even
> when they're misbehaving. A nice possible way to deal with this is to
> expose some more primit
Hello All,
My name is Rian and I am a new Racket user and a novice programmer (Racket
is my first language). First let me say that I am very grateful for the
resources available online and the books, HTDP and Realm of Racket. I find
your teaching methods very clear and as a result I am picking up
Why don't you simply use a hash-table? (mutable or immutable
according to your need).
On Fri, Aug 23, 2013 at 9:49 PM, Rian Shams wrote:
> Hello All,
>
> My name is Rian and I am a new Racket user and a novice programmer (Racket
> is my first language). First let me say that I am very grateful
Thanks for the advice on signatures.
I'll try not to design functions as weird as that foo function (it was
just a hypothetical example, not something that I think would be
actually useful).
By the way for my fold function, I designed it so that (if you gave it
the optional argument) it w
Rian Shams wrote at 08/23/2013 03:49 PM:
Any guidance on how to create fuzzy-set representation this way or if
you can suggest more concise and elegant methods I would be greatly
appreciative.
The representation you described looked OK to me -- you'd just have to
provide operations that enf
On Aug 23, 2013, at 4:17 PM, Alexander D. Knauth wrote:
> how different is Racket from ISL? How hard would it be for me to learn
> Racket if I only know ISL and only started programming this summer?
The *SL languages are designed as a gradual ramp-up to Racket though the two
look a bit out
Here is one more alternative:
#lang racket
;; you can move the body of this module into a '#lang racket' file called
fuzzy-set-library.rkt
(module fuzzy-set-library racket
;; rename-out is an elegant version of the let()/define-values trick in Realm
of Racket
(provide (rename-out (fuzz
16 matches
Mail list logo