[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Extra juicy! | Home]

Why would you /haskell/ as opposed to /elixir/, ever?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 14
Thread images: 1

File: Haskell.png (54KB, 600x600px) Image search: [iqdb] [SauceNao] [Google]
Haskell.png
54KB, 600x600px
Why would you /haskell/ as opposed to /elixir/, ever?
>>
>>51401126
>/thing/
Stop it.
>>
I'm not familiar enough with haskell, but the language appears to have more convenience operators and overall shorter syntax than elixir (effectively making it less readable though)
>>
>>51401126

/Why/ /do/ /you/ /put/ /words/ /between/ /slashes/ /they're/ /not/ /boards/ /you/ /cunt/
>>
>>51401126
Other than for teaching the basics, Haskell is just constraining your ability to get things done for no good reason.

Elixir has very pretty and intuitive syntax (unlike Erlang which it compiles too). Elixir is a pure functional language in that variables are immutable, but it provides syntactic sugar to allow variables to be changed (even though they are not). Elixir is moving in the direction of Lisp by allowing lisp-macros to work on its syntax tree. Elixir mirrors Clojure in this respect because Clojure is a lisp that is moving in the direction of being an immutable pattern matching language like ML/Haskell/etc. Clojures immutability allows it to have good concurrency like Elixir/Erlang.
>>
Do people genuinely think Elixir/Phoenix will be the next hot shit after Node?
>>
>>51401126
Do people genuinely think /putting things in slashes/ will make others think they're the next hot shit?
>>
>>51401126
Jan 1st 2016
>>
fuck i did haskell so long ago. How does it go again

sum :: Int -> Int -> Int
sum a b = a+b;
something like that right?

also the standard list is linked list right?
>>
>>51403506
the list is more of a control- than a data structure in Haskell ㅌㅂㅎ
>>
>>51402917
Why it prob wont be as popular but i can certainly see it do very well
>>
>hmm i like NEET languages like haskell
>but they're too normie for me
>i need a NEETNEET language
le elixir face
>>
>>51403506
yes, it's a singly linked list
it plays really well with immutability and you can avoid copies most of the time
there's also this magical fusion thing which i don't really know much about
you can also use something like https://hackage.haskell.org/package/vector-0.11.0.0/docs/Data-Vector-Unboxed-Mutable.html
>>
>>51403506
sum' :: Num a => [a] -> a
sum' = foldl (+) 0
Thread posts: 14
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]
Please support this website by donating Bitcoins to 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
If a post contains copyrighted or illegal content, please click on that post's [Report] button and fill out a post removal request
All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site. This means that 4Archive shows an archive of their content. If you need information for a Poster - contact them.