Re: What assignment and equivalence syntax do you prefer?
From: FM (dartdanfm_at_yahoo.com)
Date: 10/11/03
- Next message: FM: "Re: What assignment and equivalence syntax do you prefer?"
- Previous message: Matt Gregory: "Re: What assignment and equivalence syntax do you prefer?"
- In reply to: Andreas Kahari: "Re: What assignment and equivalence syntax do you prefer?"
- Next in thread: Programmer Dude: "Re: What assignment and equivalence syntax do you prefer?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 11 Oct 2003 03:08:06 GMT
"Andreas Kahari" <ak+usenet@freeshell.org> wrote:
> In article <20031010095411.589$wT@newsreader.com>, Bill Godfrey wrote:
> > Andreas Kahari <ak+usenet@freeshell.org> wrote:
> >> A better syntax would possibly be
> >> x <- 2
> >
> > if (x<-2) { printf("x is less than -2\n"); }
>
> It's a s bad as
>
> if (x=0) { printf("x is 0\n"); }
>
> > I know what you mean though. I like "arrow" imagery. x <: 2 perhaps?
>
> Yes, like an arrow. You even see it in algorithm descriptions
> in print sometimes. Hmmm... no, "<:" lacks the arrowness. What
> about "«"? Maybe it's too non-ASCII? You could also make a
> distinction between the em-dash and the shorter en-dash (for
> negation), but again, that's outside ASCII (and makes the code
> hard to read).
What about <=?
Dan.
- Next message: FM: "Re: What assignment and equivalence syntax do you prefer?"
- Previous message: Matt Gregory: "Re: What assignment and equivalence syntax do you prefer?"
- In reply to: Andreas Kahari: "Re: What assignment and equivalence syntax do you prefer?"
- Next in thread: Programmer Dude: "Re: What assignment and equivalence syntax do you prefer?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|