[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 | Free Show | Home]

Opinionated Haskell

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: 35
Thread images: 5

File: haskell_logo.png (30KB, 647x599px) Image search: [Google]
haskell_logo.png
30KB, 647x599px
Are there languages that are as compile-time safe as Haskell but also opinionated and readable as Python and GoLang?
>>
Yes. Nim.

http://nim-lang.org/
>>
What?
Haskell is imo one of the most readable languages...
>>
>>57218873
Thanks, Anon, for that link! I just creamed my in my pants when looking at the spec.
>>
File: 156208.png (492KB, 879x720px) Image search: [Google]
156208.png
492KB, 879x720px
>>57219269
>functional
>readable
Pick one.
>>
>>57219334
It's not readable if you're retarded
>>
>>57219678
>durr let's invent a programming paradigm that's so esoteric no one with an IQ under 160 can possibly understand it
>hurr then let's call everyone who doesn't like it unintelligent
>we are so smart!
>>
>>57219334
no, you're actually retarded.
The point of such high level languages is to make concepts easier. If you can't learn the rules of a language then you're a moron, but it doesn't mean the language is esoteric or difficult.
If you want an unreadable language go look at lisp, or C. haskell actually maps concepts in a very straightforward way without too much boilerplate, and with enough syntactic sugar for you to know what a program is doing.
>>
File: typical_haskell.png (47KB, 844x875px) Image search: [Google]
typical_haskell.png
47KB, 844x875px
>>57220935
Sure, that must be why Haskell is so successful and ubiquituous...
>>
>>57221031

To be fair, much of it comes down to the naming convention. If variables and functions were named like in enterprise Java it would be much clearer.

I still think that procedural / oo languages are more readable and easier to interpret at first glance, however. Functional languages may just have different merits.
>>
>>57221031
>C is successful and ubiquitous
>C++ is successful and ubiquitous
>javascript is successful and ubiquitous
>all unreadable
I will not continue to insult you but it is not very smart to associate unrelated features. Success is more linked to historial factors than to inherent features of a language.
Also how ever is a sample of perfectly normal haskell code proof of concept?
I don't know haskell so I don't understand much of that code, but I can make a few good guesses about what it does syntactically (although not semantically because I don't know what those variables and functions represent).
My ignorance (or yours) of the language doesn't make it unreadable, any more that other's ignorance of [your favorite language] makes it unreadable.
>>
>>57218873
Conversion to C is dumb.
>>
>>57222432
Yeah, I don't get it.
>>
>>57222093
>All unreadable
literally what
>>
>>57222093

JavaScript is functional though, anon.
>>
>>57220935
>Lisp unreadable

Wut.
>>
>>57218461
>Are there languages that are as compile-time safe as Haskell but also opinionated and readable as Python and GoLang?

Elm is a Haskell-inspired compile-time safe language but also very opinionated.

http://elm-lang.org/

https://guide.elm-lang.org/
>>
File: 1468454117276.png (278KB, 640x360px) Image search: [Google]
1468454117276.png
278KB, 640x360px
>>57223267
>cuck licensed
>>
>>57223314

The BSD 3-Clause license is far better than commie viral copyleft GPL bullshit.
>>
>>57223407

Go away Micro$oft-shill-pajeet.
>>
>>57222432
>>57222472
That's pretty normal, most compilers do just that except they only use C-- instead of full-blown C.
>>
>>57218461
ocaml
>>
File: 1278708681420s.jpg (7KB, 250x245px) Image search: [Google]
1278708681420s.jpg
7KB, 250x245px
>>57220935
>LISP
>unreadable

wtf are you on about?
>>
>>57226239
C minus what?
>>
>>57226983

So Swift/Rust?
>>
>>57221031
it looks like php combined with c
>>
>>57222093
lol, so what is readable for you if ain't these languages?

COBOL because it's in english?
>>
>>57218461
>implying anyone uses haskell outside of academics
>>
>>57226999
C--

It's an actual thing, believe it or not.
>>
>>57228444

>Programming language to protect programmers from shooting themselves in the foot is only used by academics

We live in the dankest timeline.
>>
>>57220935
By virtue of being high level the language is more readable than lisp? Yeah ok enjoy your explosion in a syntax factory that is lisp
>>
>>57221031
Taking Template Haskell as haskell example.

For those that don't know: Template haskell is the meta programming part of haskell
so what you see here is pretty much macro programming in C

It's done in the same language, but it's pretty annoying and uses a few custom syntax things.
the [| quotes |] and $() are TH specific.
>>
>>57230311
Wow i fucked up meant haskell at end since lisp has only like 6 elements of syntax
>>
>I want to be anally raped

okay
>>
>>57222093
>Javascript unreadable

are you dyslectic?
Thread posts: 35
Thread images: 5


[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]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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 RandomArchive shows their content, archived.
If you need information for a Poster - contact them.