Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Strong typing vs terribad typing

Name: Anonymous 2013-11-14 20:34

Alright prague

How should the expression
"5" + 6
be resolved?

Name: Anonymous 2013-11-14 21:18

God tier:
Type error.
Shit tier:
"56"
11

Terrible! tier:
56
"11"
';'

Segfault tier:
[code]&"5"[6]

Name: Anonymous 2013-11-14 23:20

only one answer

No instance for (Num [Char])
      arising from a use of `+'
    Possible fix: add an instance declaration for (Num [Char])
    In the expression: "5" + 6
    In an equation for `it': it = "5" + 6

Name: Anonymous 2013-11-14 23:36

>>3

That's an awfully long message just to say "Type Error"

Name: Anonymous 2013-11-14 23:54

"1"1

Name: Anonymous 2013-11-15 1:36

>>4
You really should learn you a Haskell, it would do idiots like you a great good!

Name: Anonymous 2013-11-15 9:41

>>2
Fuck off with your e/g/in tiers back to re/g//g/it

Don't change these.
Name: Email:
Entire Thread Thread List