> On Nov 19, 2016, at 1:51 PM, Dmitry Pavlov <dpav...@iaaras.ru> wrote: > >> Out of curiosity, why do you want this? > > I have a bunch of parameters (in the Racket sense of the word) > that are "read-only" throughout the module, i.e. there are no > modifications via calls (parameter value). > > Most of parameters' values are themselves functions. > > So what I wanted to save a couple of parentheses on > function calls: (parameter arg ...) > instead of ((parameter) arg ...)
Here's a question: do you want `parameter` to be a recond of the value of the parameter at that time, or do you want it to be a function that, when called, uses the current value then? For example if you say (use-f parameter) Where (define (use-f f) (do-something-that-could-affect-the-parameter) (f arg ...)) Using one strategy this would still use the old value of the parameter, and using the other it would use the new version after (do-something-that-could-affect-the-parameter). Which do you want? Alex Knauth > Best regards, > > Dmitry -- 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.