Re: [racket-dev] current-*-port

2012-05-07 Thread Eli Barzilay
A few minutes ago, Neil Van Dyke wrote: > > I don't mind having "stdout", "stderr", and "stdin" as aliases for > their current names. > > As a naming convention for all parameters, however, I wouldn't mind > keeping the existing one ("current-" prefix), although it is a > little cumbersome. And

Re: [racket-dev] current-*-port

2012-05-07 Thread Neil Van Dyke
Marijn wrote at 05/07/2012 10:54 AM: How about prefixing a tilda (~) instead of "current-"? It looks like a current ;P and also like a snake (parameters could be thought to ``snake'' through the code). Alternatively the at-sign (@) to represent currentness. To make them stand out more (if that is

Re: [racket-dev] current-*-port

2012-05-07 Thread Robby Findler
Oh, man. Now I wish that Emacs temporary files didn't end with ~ (because seeing that makes me want to delete it) otherwise, I love this idea for a naming convention for parameters. (To fit in with other naming conventions, we should probably use a suffix, tho, and "@", "^", "%", and "<%>" have

Re: [racket-dev] current-*-port

2012-05-07 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04-05-12 05:03, Neil Van Dyke wrote: > Matthias Felleisen wrote at 05/03/2012 10:57 PM: >> I don't think Eli is proposing an elimination of the old names >> but supplementing the code base with new ones. >> >> I am in favor -- Matthias > > Would b

Re: [racket-dev] current-*-port

2012-05-04 Thread Eli Barzilay
[Shuffled] Yesterday, Matthias Felleisen wrote: > > I don't think Eli is proposing an elimination of the old names but > supplementing the code base with new ones. Yes, I'm suggesting something along the lines of a simple addition to `racket/base': (provide (rename-out [current-output-port st

Re: [racket-dev] current-*-port

2012-05-04 Thread Matthias Felleisen
I know I know. I can't script in anything but Racket. And I have written such scripts and better still I teach such directory traversals to freshmen :-) On May 4, 2012, at 11:11 AM, Laurent wrote: > > > On Fri, May 4, 2012 at 5:04 PM, Neil Van Dyke wrote: > Matthias Felleisen wrote at

Re: [racket-dev] current-*-port

2012-05-04 Thread Laurent
On Fri, May 4, 2012 at 5:04 PM, Neil Van Dyke wrote: > Matthias Felleisen wrote at 05/04/2012 10:41 AM: > >> On May 4, 2012, at 10:34 AM, Laurent wrote >> >>> An interesting idea would be to count the number of times each >>> identifier is used in the sources, and see how many characters would be

Re: [racket-dev] current-*-port

2012-05-04 Thread Neil Van Dyke
Matthias Felleisen wrote at 05/04/2012 10:41 AM: On May 4, 2012, at 10:34 AM, Laurent wrote An interesting idea would be to count the number of times each identifier is used in the sources, and see how many characters would be saved by using different conventions. That sounds like a fan

Re: [racket-dev] current-*-port

2012-05-04 Thread Laurent
On Fri, May 4, 2012 at 4:41 PM, Matthias Felleisen wrote: > > On May 4, 2012, at 10:34 AM, Laurent wrote: > > > As sad as I am to say this, "arr[x] = 3" is read quicker by the eye than > "(vector-set! my-integer-array the-current-iterator the-number-three)" > > I started saying this in 1988, when

Re: [racket-dev] current-*-port

2012-05-04 Thread Matthias Felleisen
On May 4, 2012, at 10:34 AM, Laurent wrote: > As sad as I am to say this, "arr[x] = 3" is read quicker by the eye than > "(vector-set! my-integer-array the-current-iterator the-number-three)" I started saying this in 1988, when I requested from a Scheme implementor that arrays should be treat

Re: [racket-dev] current-*-port

2012-05-04 Thread Laurent
On Fri, May 4, 2012 at 4:04 PM, Matthias Felleisen wrote: > > On May 3, 2012, at 11:03 PM, Neil Van Dyke wrote: > > > Matthias Felleisen wrote at 05/03/2012 10:57 PM: > >> I don't think Eli is proposing an elimination of the old names but > supplementing the code base with new ones. > >> > >> I am

Re: [racket-dev] current-*-port

2012-05-04 Thread Matthias Felleisen
On May 3, 2012, at 11:03 PM, Neil Van Dyke wrote: > Matthias Felleisen wrote at 05/03/2012 10:57 PM: >> I don't think Eli is proposing an elimination of the old names but >> supplementing the code base with new ones. >> >> I am in favor -- Matthias > > Would be good to have a shorter naming co

Re: [racket-dev] current-*-port

2012-05-03 Thread David T. Pierson
On Thu, May 03, 2012 at 03:48:17PM -0400, Eli Barzilay wrote: > With the trend of having shorter names, I'll try suggesting it again. > Looking at some random slides (the ones from Matthew's talk), one > thing that is -- still -- very strikingly inconvenient is code like > > (parameterize ([curr

Re: [racket-dev] current-*-port

2012-05-03 Thread Neil Van Dyke
Matthias Felleisen wrote at 05/03/2012 10:57 PM: I don't think Eli is proposing an elimination of the old names but supplementing the code base with new ones. I am in favor -- Matthias Would be good to have a shorter naming convention for all parameters. The "current-" prefix is not short,

Re: [racket-dev] current-*-port

2012-05-03 Thread Matthias Felleisen
I don't think Eli is proposing an elimination of the old names but supplementing the code base with new ones. I am in favor -- Matthias _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] current-*-port

2012-05-03 Thread Ryan Culpepper
On 05/03/2012 02:09 PM, Neil Van Dyke wrote: Eli Barzilay wrote at 05/03/2012 03:48 PM: (parameterize ([stderr (stdout)]) ...) I'm not sure how I feel about shortening these, but an additional consideration is that a naming convention for parameters (so far, prefixing with "current-") has been

Re: [racket-dev] current-*-port

2012-05-03 Thread Carl Eastlund
On Thu, May 3, 2012 at 3:58 PM, Danny Yoo wrote: > > IMO, anyone who is not coming from some kind of Scheme background > > would view this as ridiculously long. If they're renamed to the usual > > names, things look much better: > > > > (parameterize ([stderr (stdout)]) > >...) > > > Defini

Re: [racket-dev] current-*-port

2012-05-03 Thread Neil Van Dyke
Eli Barzilay wrote at 05/03/2012 03:48 PM: (parameterize ([stderr (stdout)]) ...) I'm not sure how I feel about shortening these, but an additional consideration is that a naming convention for parameters (so far, prefixing with "current-") has been useful. I think a naming conve

Re: [racket-dev] current-*-port

2012-05-03 Thread Danny Yoo
> IMO, anyone who is not coming from some kind of Scheme background > would view this as ridiculously long.  If they're renamed to the usual > names, things look much better: > >  (parameterize ([stderr (stdout)]) >    ...) Definitely +1. _ Racket Developers list: htt

[racket-dev] current-*-port

2012-05-03 Thread Eli Barzilay
With the trend of having shorter names, I'll try suggesting it again. Looking at some random slides (the ones from Matthew's talk), one thing that is -- still -- very strikingly inconvenient is code like (parameterize ([current-error-port (current-output-port)]) ...) IMO, anyone who is not