[racket] there must be function right after parenthesis?

From: namekuseijin (namekuseijin at gmail.com)
Date: Tue Oct 26 11:09:37 EDT 2010

On Tue, Oct 26, 2010 at 5:11 AM,  <kty1104 at gmail.com> wrote:
> there must be function right after parenthesis?

no:
'(1 2 3)
'("foo" "bar")

only if list is to be evaluated by not quoting them first element
should evaluate to a function.

> hello~
> while I am learning GUI programming in DrRacket,
> I don't get how string literal can be placed right after parenthesis
> such as
> (define frame (instantiate frame% ("Example")))

most likely instantiate is a macro/syntax and allows non-quoted list
literals without evaluating them.


Posted on the users mailing list.