[Haskell-cafe] Problems with square root...
Jared Updike
jupdike at gmail.com
Wed Dec 21 14:26:46 EST 2005
MG> () <- Parenthesis
MG> {} <- Braces
MG> [] <- Brackets
MG> Sorry to be pedantic, but using the wrong terminology confuses me and
MG> I'm sure others as well.
This is true for Haskell, but Daniel is correct if he is calling ()
"Brackets" because they are, in British English, right? (Just like '.'
is a 'period' in US, but it is a 'full stop' in UK.). Of course,
English /= Haskell so in Haskell I guess they are called Parenthesized
Expressions (in the Haskell report
http://www.haskell.org/onlinereport/exps.html).
To be extra pedantic, I would call {} Curly Braces (or Curly Brackets,
or squiggly brackets, or squiggles, or ... just use layout and
whitespace!) and I would call [] Square Brackets. Then no one gets
confused.
Cheerio,
Jared
P.S. IANAA = I am an American, so I could very well be wrong about
British English!
> On 12/21/05, Daniel Carrera <daniel.carrera at zmsl.com> wrote:
> > Daniel Carrera wrote:
> > > Hey,
> > >
> > > The sqrt function is not doing what I want. This is what I want:
> > >
> > > round sqrt(2)
> >
> > Sigh... never fails. Spend an hour trying to solve a problem, and a
> > minute after you write to the list you find the solution. I need
> > brackets around sqrt. I'm surprised though. I don't understand why it
> > dosn't work without brackets.
> >
> > Daniel.
> > --
> > /\/`) http://oooauthors.org
> > /\/_/ http://opendocumentfellowship.org
> > /\/_/
> > \/_/ I am not over-weight, I am under-tall.
> > /
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> >
>
>
> --
> "50% of marriages today end in divorce, the other 50% end in death.
> Which would you rather have?"
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
--
jupdike at gmail.com
http://www.updike.org/~jared/
reverse ")-:"
More information about the Haskell-Cafe
mailing list