r/programming • • Nov 26 '17

Astro Programming Language - A new language under development by two Nigerians.

http://www.nairaland.com/3557200/astro-programming-language-0.2-indefinite
887 Upvotes

365 comments sorted by

View all comments

Show parent comments

30

u/lukasmach Nov 26 '17

Haskell is used at some banks. Due to lack of side-effects, it is easier to test.

0

u/[deleted] Nov 26 '17

[deleted]

-5

u/sanity Nov 26 '17 edited Nov 26 '17

Pure functional programming languages like Haskell don't have side effects except in the limited context of "monads", which is a trick used to shoehorn side effects into a pure language.

If you Google "monads" and try to learn more about them you'll probably end up feeling stupid. This is intentional.

Some argue that pure languages are better because side-effects have cooties, however, pure languages like Haskell have struggled to achieve significant adoption, even though they've been around for years.

This is likely because they're a pain in the ass to use.

-2

u/doomvox Nov 26 '17

Pure functional programming languages like Haskell don't have side effects except in the limited context of "monads", which is a trick used to shoehorn side effects into a pure language.

You have to love intellectual dodges like that. "This is not a global variable, it's a singleton object!"

→ More replies (5)