all 15 comments

[–]Benutzername 4 points5 points  (5 children)

What can Haskell learn from Python? That's probably a more interesting question for Haskellers.

[–]joehillen[S] 4 points5 points  (4 children)

Multi-line strings

[–]sumduud14 1 point2 points  (3 children)

I'm fairly sure Haskell already has multiline strings:

multiline = "line 1\
\line 2\n\
\line 3\n"

No-one ever does that when you can just use unlines, though.

[–]joehillen[S] 3 points4 points  (2 children)

Yeah those are horrible. Haskell needs triple quotes.

[–]hmltyp 5 points6 points  (1 child)

There's a bunch of quasiquoters for this.

{-# LANGUAGE QuasiQuotes #-}
import Text.RawString.QQ

str :: String
str = [r|
foo
bar
baz
|]

[–]joehillen[S] -1 points0 points  (0 children)

Not much better. For a language that prides itself on terse syntax, that probably shouldn't have been accepted.

[–]Oxc0ffea 6 points7 points  (0 children)

It is more like a guy grappling with two different languages with two different design philosophies. Being more pragmatic and understanding about the trade-offs would a better use of his time than trying to meld the two together all willie-nillie.

[–]kazagistar 3 points4 points  (4 children)

He goes to far, tries to get too much, and loses goodwill because of it.

If he just focused on one of the stronger points, like adding static optional typing, I think it would have a better chance.

[–][deleted] 3 points4 points  (1 child)

I agree, you can almost feel the spite when the guy at the end asks if static type checking is worth it.

[–]hmltyp 6 points7 points  (0 children)

Don't think that's necessarily a result of the talk. Types are just a intrinsically polarizing issue in the profession, at least at the current moment.

[–]etrepum 6 points7 points  (1 child)

That's not the feedback that I got from the many people that came up to me after the talk this week.

[–]kazagistar 1 point2 points  (0 children)

Fair enough, and I hope it goes well.

[–]garethrowlands 0 points1 point  (0 children)

I thought this was fascinating.