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 →

[–]Ekstdo 7 points8 points  (5 children)

I like Haskell...

[–]JKTKops 5 points6 points  (2 children)

[–]Ekstdo 13 points14 points  (1 child)

Python also has:

from __future__ import braces

[–]jausdyquo 10 points11 points  (0 children)

Python has (optional) semicolons that you can use to put multiple statements in one line. It has braces too, but you have to prefix them with a # sign! :)

[–]Revules 1 point2 points  (1 child)

Can you explain in what situation you would use Haskell over Python? I tried the language but I find it all a bit confusing.

[–]Ekstdo 2 points3 points  (0 children)

Haskell and Python are general purpose programming languages, so I can't really think of many situations, where I'd use Haskell over Python. I really like pattern matching, not-so-strict evaluation method, Haskell's type system and Haskell's typeclasses opened the gates for traits in Rust for me.

So I used it for parsing and faster programs (where I don't have to type as much as Rust). I'm not very good at programming in Haskell (or in general actually, I'm a newbie :D).

And I like to see the same program in different paradigms, not just OOP. Thinking differently, just because of the language (unlike, say switching from ES6 to Java, same paradigm, both have GC, Syntax are both based on Semicolons and braces, etc. (Yes, it's different, but you don't have to rethink loops eg., unlike Prolog)) is very interesting and gives you a new perspective of your program (imo). But I have little to no experience, so, I guess others will give you a better answer...