[racket-users] Re: Parameters considered often harmful

2018-08-02 Thread George Neuner
On 8/2/2018 1:24 PM, 'John Clements' via Racket Users wrote: I hate to turn a little question into a big one, but… are parameters the right choice, here? It seems to me that optional parameters would be more suitable. Unfortunately, I’ve been on the other side of this fence, too: parameters a

Re: Parameters considered often harmful (was: Re: [racket-users] Re: A (long) question regarding parameters and scope)

2018-08-02 Thread Alex Harsanyi
On Friday, August 3, 2018 at 1:24:08 AM UTC+8, johnbclements wrote: > > I hate to turn a little question into a big one, but… are parameters the > right choice, here? It seems to me that optional parameters would be more > suitable. > Most (but not all) parameters act as default values for re

Re: [racket-users] parameterize and keyword - doable?

2018-08-02 Thread George Neuner
On 8/2/2018 7:45 PM, Sanjeev Sharma wrote: can racket's  #: keywords be finagled / coerced into a parameterizable form? ??? Certainly you can pass a parameter to a keyword argument, and/or make a parameter the default value of a keyword argument.  And you can use an argument to parameteriz

[racket-users] Re: A (long) question regarding parameters and scope

2018-08-02 Thread Alex Harsanyi
On Friday, August 3, 2018 at 6:22:10 AM UTC+8, Alex Harsanyi wrote: > > > > On Thursday, August 2, 2018 at 11:19:58 PM UTC+8, Carlos Lopez wrote: >> >> Thanks Alex! >> >> Right, so make-bm is being called from another thread and so the >> parameters are different there. >> > > The parameters sho

[racket-users] parameterize and keyword - doable?

2018-08-02 Thread Sanjeev Sharma
can racket's #: keywords be finagled / coerced into a parameterizable form? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegro

[racket-users] Re: A (long) question regarding parameters and scope

2018-08-02 Thread Alex Harsanyi
On Thursday, August 2, 2018 at 11:19:58 PM UTC+8, Carlos Lopez wrote: > > Thanks Alex! > > Right, so make-bm is being called from another thread and so the > parameters are different there. > The parameters should not be different. The objective of the save/restore parameters is to make sure

[racket-users] Re: Parameters considered often harmful

2018-08-02 Thread Neil Van Dyke
'John Clements' via Racket Users wrote on 08/02/2018 01:24 PM: Unfortunately, I’ve been on the other side of this fence, too: parameters are vastly more convenient for implementors than adding optional parameters to every one of the internal calls. This certainly came up for me in the construc

Parameters considered often harmful (was: Re: [racket-users] Re: A (long) question regarding parameters and scope)

2018-08-02 Thread 'John Clements' via Racket Users
I hate to turn a little question into a big one, but… are parameters the right choice, here? It seems to me that optional parameters would be more suitable. Unfortunately, I’ve been on the other side of this fence, too: parameters are vastly more convenient for implementors than adding optional

Re: [racket-users] You Are a Programmer Now HtDP2e

2018-08-02 Thread Matthias Felleisen
> On Aug 2, 2018, at 11:25 AM, Scott wrote: > > My message does not contain the word “recursion.” > No it doesn't. However, Structure and Interpretation of the Computer Science > Curriculum does, as it does your criticism of SICP's use of (generative) > recursion. Sure, but please don’t pu

Re: [racket-users] You Are a Programmer Now HtDP2e

2018-08-02 Thread Scott
> > My message does not contain the word “recursion.” No it doesn't. However, *Structure and Interpretation of the Computer Science Curriculum* does, as it does your criticism of SICP's use of (generative) recursion. On Thursday, August 2, 2018 at 10:16:26 AM UTC-4, Matthias Felleisen wrote:

Re: [racket-users] internal-definition-context-binding-identifiers & macro scopes

2018-08-02 Thread michael.ballantyne
It's true that `internal-definition-context-binding-identifier` is unusual in not applying `syntax-local-introduce` to the identifiers it returns, but that doesn't capture the whole problem. Let's imagine we made things consistent by mapping `syntax-local-introduce` over the returned names. Let

[racket-users] Re: A (long) question regarding parameters and scope

2018-08-02 Thread Carlos Lopez
Thanks Alex! Right, so make-bm is being called from another thread and so the parameters are different there. That explains why in this case, the axes are hidden: #lang racket (require plot) (plot-new-window? #t) (plot-decorations? #f) (parameterize () (plot3d (surface3d (λ (x y) (* (cos x)

Re: [racket-users] You Are a Programmer Now HtDP2e

2018-08-02 Thread Matthias Felleisen
> On Aug 2, 2018, at 9:27 AM, Scott wrote: > > Thank you. I am not technically sufficient to add much to your response. Will > the core curriculum become available online? I am not sure what you mean by “online” here, but the course numbers are spelled out in Northeastern’s online catalogue

Re: [racket-users] You Are a Programmer Now HtDP2e

2018-08-02 Thread Scott
Thank you. I am not technically sufficient to add much to your response. Will the core curriculum become available online? Your criticism of SICP's use of recursion seems to extend to the method for teaching recursion principles in The Little Schemer series, in that it does just that - teaches