[racket-users] Does `read-words/line' preserve last newline information?

2016-04-15 Thread Quico Jurado
Hello, I posted this question in SO, but hoping to get more answers here. I'm reading Part two from the 2htdp book, and I'm curious about the behavior of the read-words/line function that lives under 2htdp/batch-io. I created two different files, the first file having a \n at the end of the fi

Re: [racket-users] Modernizing scribble/html

2016-04-15 Thread Sam Tobin-Hochstadt
Yes, I think the simple solution is the right one. Sam On Fri, Apr 15, 2016 at 3:50 PM, Jens Axel Søgaard wrote: > Hi All, > > The library scribble/html paired with at-expressions provide a really nice > way to write html: > > @html[@head[@title{This is a title}] > @body[@h1{This

Re: [racket-users] Modernizing scribble/html

2016-04-15 Thread Neil Van Dyke
Er, if you're just asking about something that will be used only with Scribble, disregard most of my message. Neil Van Dyke wrote on 04/15/2016 04:06 PM: XHTML is dead. I would work from HTML5, and keep HTML 4.x in mind. I have considered a struct representation, and would definitely do that

Re: [racket-users] Modernizing scribble/html

2016-04-15 Thread Neil Van Dyke
XHTML is dead. I would work from HTML5, and keep HTML 4.x in mind. I have considered a struct representation, and would definitely do that if I were writing a Web browser, but for now, there's too much reason to just use SXML and all the tools around it. Note that for some purposes, an all-p

[racket-users] Modernizing scribble/html

2016-04-15 Thread Jens Axel Søgaard
Hi All, The library scribble/html paired with at-expressions provide a really nice way to write html: @html[@head[@title{This is a title}] @body[@h1{This is a header} @p{This is a paragraph with text}]] The library represents html as structures. Each ht

Re: [racket-users] typed racket syntax

2016-04-15 Thread Sam Tobin-Hochstadt
On Fri, Apr 15, 2016 at 1:16 PM, Rusi Mody wrote: > Racket being a lisp its fine that we write > (: v t) > where the rest of the world writes > v : t > > But what is > (: v : t) > > ?? > A bit be-fuddled? Sometimes, it reads more nicely using the second form. It means the same thing as (: v t).

[racket-users] typed racket syntax

2016-04-15 Thread Rusi Mody
Racket being a lisp its fine that we write (: v t) where the rest of the world writes v : t But what is (: v : t) ?? A bit be-fuddled? ref: https://docs.racket-lang.org/ts-reference/special-forms.html#%28form._%28%28lib._typed-racket%2Fbase-env%2Fprims..rkt%29._~3a%29%29 Also how would I go

[racket-users] Accessing Undo/Redo History directly?

2016-04-15 Thread Normal Loone
Hello, For my Bachelor I am supposed to create a pluggin for DrRacket that protocols in what order a user writes his code. Is there a easy way to access the previously written text (like the undo/redo history) within DrRacket without just recording each individual key-down? best regards in ad