On Sun, 2007-12-23 at 17:15 +0800, Peter Wood wrote:
> And I thought I had a good grasp of American !!
>
> Differences in punctuation
> () = brackets (UK English) = parentheses (US English)
> [] = square brackets (UK English) = brackets (US English)
> Source: Ritter RM. The Oxford guide to style. Oxford: Oxford University
> Press, 2002.
..I did not know that. Huh.
~Files away under "Weirdness of the English Language"~
>
> On Sunday, December 23, 2007, at 05:04 pm, Izkata wrote:
>
> >
> >
> > On Sun, 2007-12-23 at 16:37 +0800, Peter Wood wrote:
> >> Hi Nick
> >>
> >>> Just tonight, a reader from my site wrote to say that in the past,
> >>> all
> >>> the documentation he had previously read had led him to misunderstood
> >>> the syntax of a simple 'if expression, originally thinking that the
> >>> conditional evaluation needed to be placed in brackets (which made
> >>> every condition always evaluate to true...).
> >>
> >> I must be missing something:
> >>
> >>>> (1 = 2)
> >> == false
> >>>> (1 = 1)
> >> == true
> >>>> ("a" = "a")
> >> == true
> >>>> ("a" > "c")
> >> == false
> >
> > Brackets, not parens:
> >
> >>> to-logic [1 = 2]
> > == true
> >
> > And I can see one reason why this would be especially confusing - 'if
> > versus 'while. They both have conditionals, except 'while does use a
> > block while 'if does not. This makes sense because the condition in an
> > 'if is only evaluated once, while 'while needs to evaluate the
> > condition
> > multiple times, but the reasoning is only apparent once you understand
> > how a block! works.
> >
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> >
>
>
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.