Re: [racket] `def' ?

2012-05-11 Thread jukka . tuominen
My point was not so much about def in particular, or any single change. Rather, one's personal or even collective development should not lead to making the language gradually more difficult to beginners IMO. br, jukka > Asserting that the keyword "def" would confuse beginners is a red herring.

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread prad
Neil Toronto writes: > Oh, that's the problem. I added all those plot goodies in v5.2, when I > reimplemented it in Racket. I hope you're not stuck with v5.1. :/ > no problem! just glad to know why i couldn't get things. the pict stuff michael w told me about worked beautifully. i'll just upgrad

Re: [racket] `def' ?

2012-05-11 Thread Luke Vilnis
Correction - should have been "...Clojure, Scala, Groovy, _Python_, Ruby..." On Fri, May 11, 2012 at 4:49 PM, Luke Vilnis wrote: > Asserting that the keyword "def" would confuse beginners is a red herring. > Scheme is AFAIK the only language whose variable binding form is _not_ some > kind of an

Re: [racket] `def' ?

2012-05-11 Thread Luke Vilnis
Asserting that the keyword "def" would confuse beginners is a red herring. Scheme is AFAIK the only language whose variable binding form is _not_ some kind of an abbreviation. C#/JavaScript use "var". Heck, D and C++11 use "auto", which is truly bizzare. "def" is a very common keyword to use for th

Re: [racket] Basic inquiry

2012-05-11 Thread Matthias Felleisen
The beginning of section 2.1.3 looks like this: > All other operations concerning strings consume or produce data other than > strings. Here are some examples: > • string-length consumes a string and produces a (natural) number; > > • string-ith consumes a string s and extracts t

Re: [racket] `def' ?

2012-05-11 Thread Jukka Tuominen
I can't say I like the idea for usability and compatibility reasons. Usability: - Try this idea exaggerated: def lmbd cwcc cdr cond tgt gg param ... Maybe for hard core pros, but this doesn't make the language very approachable for the beginners. I made a few new ones so even the pros

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread Neil Toronto
On 05/11/2012 12:48 PM, prad wrote: Neil Toronto writes: On 05/11/2012 11:44 AM, prad wrote: i'm not using drscheme. how do i display things like (object:2d-view% ...) which are produced when we use plot etc. if i run a racket program from command line? i thought there might be something li

Re: [racket] Basic inquiry

2012-05-11 Thread saad bashir
I am back again. I had a basic inquiry and your help got me started. My problem is as follows: *I have just started to work through 2Htdp (i.e. the second edition) that you had guided me to. Having gone through the prologue I am now on the second chapter, "Fixed-size data." But have got stuck a

Re: [racket] `def' ?

2012-05-11 Thread John Clements
On May 11, 2012, at 12:42 PM, Jens Axel Søgaard wrote: > 2012/5/11 Asumu Takikawa : >> Funny that this came up here, since just the other day I saw that the >> latest release of Gauche has this feature, but using the $ identifier: >> http://practical-scheme.net/gauche/ > > Here is the manual en

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Nick Shelley
So no, it does not allow you to enter arbitrary computations. I'm not saying that this should replace the current language-based approach, but I think that having this for all pre-defined actions (like new tab, run, complete, etc.) would make customizing (as apposed to augmenting) much more conveni

Re: [racket] `def' ?

2012-05-11 Thread Jens Axel Søgaard
2012/5/11 Asumu Takikawa : > Funny that this came up here, since just the other day I saw that the > latest release of Gauche has this feature, but using the $ identifier: >  http://practical-scheme.net/gauche/ Here is the manual entry: http://practical-scheme.net/gauche/man/gauche-refe_24.html#i

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Matthias Felleisen
Thanks that's what I had assumed. (I have run Xcode on my Mac :-) But I do think one could extend the Xcode approach with "and if you would like to do more, here is a way to mix and match" -- Matthias On May 11, 2012, at 3:39 PM, Nick Shelley wrote: > Sorry to be imprecise. It lists all me

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Laurent
On Fri, May 11, 2012 at 9:32 PM, Luke Vilnis wrote: > I assume Chaitin's constant is involved. Man, if Xcode knows Omega, I ditch my PC, buy a Mac and leave DrRacket at once! > > > On Fri, May 11, 2012 at 3:22 PM, Matthias Felleisen > wrote: > >> >> [How] does Xcode allow you to enter arbitr

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Luke Vilnis
I assume Chaitin's constant is involved. On Fri, May 11, 2012 at 3:22 PM, Matthias Felleisen wrote: > > [How] does Xcode allow you to enter arbitrary computations in response to > key events? I don't understand how one can list "all possible actions" > since there are infinitely many? -- Matthias

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Matthias Felleisen
[How] does Xcode allow you to enter arbitrary computations in response to key events? I don't understand how one can list "all possible actions" since there are infinitely many? -- Matthias On May 11, 2012, at 2:58 PM, Nick Shelley wrote: > On the topic of key bindings, is there a reason thi

Re: [racket] `def' ?

2012-05-11 Thread Asumu Takikawa
On 2012-05-11 14:38:00 -0400, Hendrik Boom wrote: > Long long ago I implemented a lispish language using a syntactic hack > to reduce nesing. > > ( a b c / d e f / g h i) > > is equivalent to > > (a b c ( d e f ( g h i))) Funny that this came up here, since just the other day I saw that the la

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Nick Shelley
On the topic of key bindings, is there a reason this can't be done in the preferences menu? Xcode has a key bindings section in the preferences menu that has all possible actions on the left and the current bindings on the right, and you can just click on the current binding and change it to whatev

[racket] "Docstrings"

2012-05-11 Thread Grant Rettke
Hi, Been learning Python and the docstring feature is nice, you just a binding for it's doc and you have it in the repl and it saves you some time and best of all it makes your favorite IDE integrate nicely. Thinking about Racket it seems like it would be nice. Yea I know I can add it if I want bu

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread prad
Neil Toronto writes: > On 05/11/2012 11:44 AM, prad wrote: >> i'm not using drscheme. >> >> how do i display things like >> (object:2d-view% ...) >> which are produced when we use plot etc. >> >> if i run a racket program from command line? >> >> i thought there might be something like a show fun

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread Michael W
The other answers covered plotting, but for picts from the slideshow library (for example, those returned by plot/pict), you can use (show-pict some-pict) from slideshow/pict, which will display that pict in a new frame. One hour ago, prad wrote: > i'm not using drscheme. > > how do i display thi

Re: [racket] `def' ?

2012-05-11 Thread Hendrik Boom
On Thu, May 10, 2012 at 06:19:00PM +0200, Laurent wrote: > On Thu, May 10, 2012 at 5:54 PM, Greg Hendershott > wrote: > > > Should `def' be added as an alias for `define'? > > > > Possible reasons why: > > 1. Most frequently used. > > http://lists.racket-lang.org/dev/archive/2012-May/009429.html

Re: [racket] question about dc% and scale

2012-05-11 Thread Garrett Mitchener
By the way, the same sort of bug affects draw-ellipse and canvas%. -- Garrett Mitchener On Thu, May 10, 2012 at 11:10 AM, Garrett Mitchener < garrett.mitche...@gmail.com> wrote: > Okay, yes, using a dc-path% seems to work as intended. > > Thanks! > > -- Garrett Mitchener > > On Thu, May 10, 2012

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread Neil Toronto
On 05/11/2012 11:44 AM, prad wrote: i'm not using drscheme. how do i display things like (object:2d-view% ...) which are produced when we use plot etc. if i run a racket program from command line? i thought there might be something like a show function, but it doesn't seem to be in #lang racke

Re: [racket] plots/graphics without drscheme

2012-05-11 Thread Asumu Takikawa
On 2012-05-11 10:44:43 -0700, prad wrote: > how do i display things like > (object:2d-view% ...) > which are produced when we use plot etc. For plot, you can use the plot-frame function: http://docs.racket-lang.org/plot/plot2d.html?q=plot-frame#(def._((lib._plot/main..rkt)._plot-frame)) You wi

[racket] plots/graphics without drscheme

2012-05-11 Thread prad
i'm not using drscheme. how do i display things like (object:2d-view% ...) which are produced when we use plot etc. if i run a racket program from command line? i thought there might be something like a show function, but it doesn't seem to be in #lang racket -- in friendship, prad _

Re: [racket] Want to understand about how to use incomplete paths produced by directory-list.

2012-05-11 Thread Neil Van Dyke
Don Green wrote at 05/11/2012 12:43 PM: Is the best way for me to learn about how to use Racket paths: a) by asking the question in this mailing list, OR, b) by looking in some repository that has information on this. (If I should look in a repository, which one?) It is usually a good idea

Re: [racket] Want to understand about how to use incomplete paths produced by directory-list.

2012-05-11 Thread Matthias Felleisen
On May 11, 2012, at 12:43 PM, Don Green wrote: > Wondering... > Is the best way for me to learn about how to use Racket paths: > a) by asking the question in this mailing list, > OR, > b) by looking in some repository that has information on this. (If I should > look in a repository, which one

[racket] Want to understand about how to use incomplete paths produced by directory-list.

2012-05-11 Thread Don Green
Wondering... Is the best way for me to learn about how to use Racket paths: a) by asking the question in this mailing list, OR, b) by looking in some repository that has information on this. (If I should look in a repository, which one?) THANKS! Racket Users list: http://l

Re: [racket] `def' ?

2012-05-11 Thread Deren Dohoda
-1 But this is why we can make our own #langs. On May 10, 2012 11:55 PM, "Michael W" wrote: > Yes! Hear, hear! Having to explicitly write all the references > out and get their types right is a pain point for me. Maybe it's > encouraged by the design recipe, but sometimes I get jealous of > lang

Re: [racket] Custom Key Bindings - Post Your File

2012-05-11 Thread Robby Findler
Ah, good point. I've added some example code to the docs that shows how to bind menu items. Here's the code. Robby #lang s-exp framework/keybinding-lang (define (menu-bind key menu-item) (keybinding key (λ (ed evt) (define canvas (send ed get-canvas)) (when canvas (defin

Re: [racket] left boundary problem

2012-05-11 Thread Roelof Wobben
Nobody who can help me understand what Matthias ment with some remarks such as this one : Oke, but which other contants ? Roelof Op 10-5-2012 18:18, Roelof Wobben schreef: Op 10-5-2012 18:08, Matthias Felleisen schreef: On May 10, 2012, at 11:01 AM, Roelof Wobben wrote: p 10-5-2012 15:33