[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Why would you /haskell/ as opposed to /elixir/, ever?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 14
Thread images: 1
File: Haskell.png (54 KB, 600x600) Image search: [Google]
Haskell.png
54 KB, 600x600
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 replies: 14
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.