The rationale for this is that you might write
@foo[bar]
{ stuff }
where the stuff in braces is just text that is unrelated to the `foo'
call -- if a newline is allowed there, not only does it become easy to
do such mistakes, it's also hard to fix them. You'd need some hack
like adding a "@;
The @-syntax is described in this part of the manual:
http://docs.racket-lang.org/scribble/reader.html
But I don't see any rationale for the required spaces. I presume it to
allow all the various optional pieces to be left out in any order.
Jay
On Fri, Nov 25, 2011 at 10:02 PM, Daniel Bastos w
2011/11/25 Jay McCarthy :
> The lack of a space between ] and { is important. Notice that the example in
> the documentation is
> @in[c clients]{
> @(car c), @(cdr c)
> }
> not
> @in[c clients] {
> @(car c), @(cdr c)
> }
Indeed. Thanks. I wonder why there is such requirement. Does it avo
The lack of a space between ] and { is important. Notice that the example
in the documentation is
@in[c clients]{
@(car c), @(cdr c)
}
not
@in[c clients] {
@(car c), @(cdr c)
}
Jay
On Thu, Nov 24, 2011 at 3:06 PM, Daniel Bastos wrote:
> Good evening, gentlemen.
>
> I'm studying
>
>
Good evening, gentlemen.
I'm studying
http://docs.racket-lang.org/web-server/templates.html
to see how web development is done in Racket. Having written a first
hello world using templates, I'm wishing to use the @in[] call. So I
wrote
%cat templates1.rkt
#lang racket
(require web-server/serv
5 matches
Mail list logo