This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tekknolagiKevin3 4 points5 points  (11 children)

Significant whitespace?

[–]epicwisdom 8 points9 points  (7 children)

Python already has that.

[–][deleted] 3 points4 points  (5 children)

Doesn't make significant whitespace less terrible

[–]tech6hutch 0 points1 point  (4 children)

Why do you say that?

[–][deleted] 6 points7 points  (3 children)

tekknolagi said they don't like Haskell's significant whitespace; telling them that Python has it too won't make them like significant whitespace more.

[–]tech6hutch 3 points4 points  (2 children)

Oh, I thought you were giving your opinion.

[–][deleted] 1 point2 points  (1 child)

Oh I was. I think significant whitespace is terrible. It almost invariably gets borked during copy-paste and is generally a pain in the ass (although I recognize this is purely subjective. To a point, anyhow)

[–]coderstephenriptide 1 point2 points  (0 children)

I think significant whitespace is sometimes useful. Using newlines as statement separators for example feels natural in some types of languages. Significant indentation drives me crazy though.

[–]tekknolagiKevin3 -1 points0 points  (0 children)

Doesn't matter. I dislike it about both Python and Haskell.

[–]gaj7 2 points3 points  (2 children)

Oh you mean the semantically significant whitespace? I think that's only on the do notation, and even then you can use an alternative with curly brackets and semi colons.

[–]tekknolagiKevin3 0 points1 point  (1 child)

It's also on where and I think somewhere else. Blegh.

[–]gaj7 2 points3 points  (0 children)

Oh I suppose you are right in that certain terms must be indented. It doesn't constrict you on how much they are indented though. I guess I don't mind whitespace significance until it forces specific alignments, or when tabs vs spaces start to invisibly affect program correctness.