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.
>>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.
>>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/
>>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
>>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?