Re: What assignment and equivalence syntax do you prefer?

From: FM (dartdanfm_at_yahoo.com)
Date: 10/11/03


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.



Relevant Pages

  • Re: how shd i improve upon this algorithm(ne suggestions)
    ... > the following algo can be used only to encrypt ascii characters. ... > nos 0....255.We use this to asssign a new index to ebery charcter. ... > consider pairs of nos we can divide the set into 16*16 distinct ... I'm sure the people capable of "optimizing" your algorithm understand the ...
    (sci.crypt)
  • Re: how to get ascii value of a symbols?
    ... When you already know the symbol you want, such as the arrow, you can use ... changed the font. ... The stupid part is that the wrapper always returns an ASCII value of 40, ... symbol in the net for the past 4 days and I'm afraid I might miss my ...
    (microsoft.public.word.docmanagement)
  • Re: Provability
    ... Robert Israel ... how we can be sure that the hypotheses or its negation ... This is even worse than the Riemann hypothesis in that regard: ... but there might not be a proof that this algorithm works. ...
    (sci.math)
  • Re: Provability
    ... how we can be sure that the hypotheses or its negation ... This is even worse than the Riemann hypothesis in that regard: ... but there might not be a proof that this algorithm works. ... def SayYes: ...
    (sci.math)
  • Re: LRC Calculation Algorithm
    ... >> XORing all ASCII (or UNICODE) codes of all characters in the string. ... >> Dmitriy. ... makes it more difficult to decipher that tiny portion of algorithm itself. ...
    (microsoft.public.vb.enterprise)