Re: [racket] learn racket in 10 minutes

2013-07-18 Thread Greg Hendershott
On Thu, Jul 18, 2013 at 3:19 AM, Roger Rousseau wrote: > The site uses syntax highlighting from Rouge > (https://github.com/jayferd/rouge), via middleman-syntax, which > unfortunately doesn't have a Racket highlighting built in. It's been a > problem a few times; notably, F# is using C# highlighti

Re: [racket] learn racket in 10 minutes

2013-07-18 Thread Greg Hendershott
> I think λ needs to be added to the list of keywords Actually λ was in the list all along. Python requires the string literal to be u'λ' not 'λ'. #SpoiledByRacket I submitted a PR to Pygments with the fix. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] learn racket in 10 minutes

2013-07-17 Thread Greg Hendershott
On Mon, Jul 15, 2013 at 6:41 PM, Roger Rousseau wrote: > Adam has put the Racket version online: http://learnxinyminutes.com/ > But the syntax highlighting is wrong, it seems to be for Scheme rather than > Racket > There is syntax highlighting for Racket on Github, am I right ? ... I will > chase

Re: [racket] learn racket in 10 minutes

2013-07-17 Thread Roger Rousseau
Hello This is now corrected. Eli's contributions have been merged and the online website has been updated Thanks everybody R On Wed, Jul 17, 2013 at 8:19 PM, Stephen De Gabrielle < stephen.degabrie...@acm.org> wrote: > Looks good. > > Weirdly the download is a .py instead of .rkt : > > >Get t

Re: [racket] learn racket in 10 minutes

2013-07-17 Thread Stephen De Gabrielle
Looks good. Weirdly the download is a .py instead of .rkt : >Get the code: learnracket.py -- Stephen De Gabrielle On Mon, Jul 15, 2013 at 11:41 PM, Roger Rousseau wrote: > I didn't realize Racket had "unless" already... I will change it to while. > > Adam has put the Racket version online:

Re: [racket] learn racket in 10 minutes

2013-07-15 Thread Roger Rousseau
I didn't realize Racket had "unless" already... I will change it to while. Adam has put the Racket version online: http://learnxinyminutes.com/ But the syntax highlighting is wrong, it seems to be for Scheme rather than Racket There is syntax highlighting for Racket on Github, am I right ? ... I w

Re: [racket] learn racket in 10 minutes

2013-07-15 Thread Carl Eastlund
An easy thing to add instead might be a while loop: (define-syntax-rule (while condition body ...) (let loop () (when condition body ... (loop Carl Eastlund On Mon, Jul 15, 2013 at 6:51 AM, Tobias Hammer wrote: > The unless macro seems a bit unfavorable as a macro with t

Re: [racket] learn racket in 10 minutes

2013-07-15 Thread Tobias Hammer
The unless macro seems a bit unfavorable as a macro with the same name and different semantics already exists in racket Tobias On Mon, 15 Jul 2013 04:55:38 +0200, Roger Rousseau wrote: Thanks everybody for the suggestions I've followed most of them, except adding a section about "Units

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Roger Rousseau
Thanks everybody for the suggestions I've followed most of them, except adding a section about "Units" because I felt there was already a lot to take in Amended version is here: https://github.com/voila/learnxinyminutes-docs/blob/master/racket.html.markdown I plan to send a pull request tonight.

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Robby Findler
How about throwing in a simple macro? Robby On Sunday, July 14, 2013, Richard Lawrence wrote: > Hi Roger, > > This is cool, thanks for putting it together! > > Roger Rousseau > > writes: > > > It's largely inspired from the Clojure version and the Racket > documentation > > I would be grateful f

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Richard Lawrence
Hi Roger, This is cool, thanks for putting it together! Roger Rousseau writes: > It's largely inspired from the Clojure version and the Racket documentation > I would be grateful for any corrections/suggestions before I send a pull > request to get this online Here are a couple of (tiny) sugge

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Grant Rettke
On Sun, Jul 14, 2013 at 7:08 AM, Roger Rousseau wrote: > It's largely inspired from the Clojure version and the Racket documentation > I would be grateful for any corrections/suggestions before I send a pull > request to get this online That is really, really nice. A few of my personal favorites

Re: [racket] learn racket in 10 minutes

2013-07-14 Thread Sam Tobin-Hochstadt
Great! Two suggestions -- I'd move `set!` later, and maybe have a section for mutation, with vectors as well. Also, I think some version of `for/list` and `for/hash` would be good to show off in the loop section. Sam On Sun, Jul 14, 2013 at 8:08 AM, Roger Rousseau wrote: > Hello > > Following

[racket] learn racket in 10 minutes

2013-07-14 Thread Roger Rousseau
Hello Following Sam's suggestion on Twitter I have done a Racket version of http://learnxinyminutes.com/ which can be found here: https://github.com/voila/learnxinyminutes-docs/blob/master/racket.html.markdown It's largely inspired from the Clojure version and the Racket documentation I would be