|
VikingofRock posted:Wait isn't C still dealing with the fallout of its syntax decisions today? Even looking past stuff like trigraphs, people look at you funny if you compile without warnings enabled because C lets you write a bunch of stuff that looks good but which actually does something totally different from what you want. Also C syntax leads to stuff like goto fail. because c, c++, c#, and Java, aka all of the adult languages, are in agreement
|
# ? Apr 29, 2015 06:05 |
|
|
# ? May 27, 2024 22:03 |
|
idk I Wikipediaed elm and it was like "a single line comment is --" no, gently caress you, it is // and there is no reason for it not to be
|
# ? Apr 29, 2015 06:07 |
|
Bloody posted:idk I Wikipediaed elm and it was like "a single line comment is --" no, gently caress you, it is // and there is no reason for it not to be // is integer division. elm is part of the ml family which all share a lot of syntax
|
# ? Apr 29, 2015 06:22 |
|
OK, but they are wrong
|
# ? Apr 29, 2015 06:23 |
|
single line comment syntax is a weird thing to get stuck on
|
# ? Apr 29, 2015 06:26 |
|
yeah i mean sql, a known Useful Language, uses -- for comments
|
# ? Apr 29, 2015 06:36 |
|
ignoring comments, the lack of parentheses for function application is pretty critical for OCaml, f#, haskell etc. it enables partial application e: Bloody does have a good point though about how lots of langs have different syntax just for the sake of it. letting you choose between whitespace sensitivity and braces+; gives you the best of both worlds gonadic io fucked around with this message at 07:03 on Apr 29, 2015 |
# ? Apr 29, 2015 07:01 |
|
; is an ok comment character too, considering that lisp's been using it since forever
|
# ? Apr 29, 2015 07:03 |
|
gonadic io posted:letting you choose between whitespace sensitivity and braces+; gives you the best of both worlds i don't see why a modern lang wouldn't do this, unless you're Guido and believe that braces are ~unpythonic~ (or vice versa) I mean by design it'd be perfectly backwards compatible. it's not like langs (generally) themselves have an opinion on spaces vs tabs for example e: i guess that it'd cause if (cond) do_thing; to potentially be an error where it wasn't before but I don't really see that as a problem gonadic io fucked around with this message at 07:22 on Apr 29, 2015 |
# ? Apr 29, 2015 07:16 |
|
fart simpson posted:learn elm
|
# ? Apr 29, 2015 08:35 |
|
Bloody posted:i always think functional languages should be really good for machine learning but i have absolutely no reason to think that and no evidence to support such a thought this is what happens when you let haskell people think about machine learning
|
# ? Apr 29, 2015 09:17 |
|
did you ever see the paper about making a separate monad instance for each different probability distribution
|
# ? Apr 29, 2015 09:24 |
|
VikingofRock posted:Only in the sense that everything language is terrible (functional or not). Go learn a functional language! You're (probably) not going to get a job with it but it'll be fun and interesting and you'll get a wider perspective on coding as a whole. but then what's the point? like why would i bother learning haskell if i won't be able to really do anything to make money with it? fart simpson posted:javascript syntax is pretty good bless
|
# ? Apr 29, 2015 13:29 |
|
Blinkz0rz posted:but then what's the point? like why would i bother learning haskell if i won't be able to really do anything to make money with it? same reason you might learn another human language: give you a new perspective, let you understand more writings and participate in additional interesting conversations. see also taking a pottery class even if you don't want to make vases for a living
|
# ? Apr 29, 2015 13:37 |
|
hi pl thread should i learn rust
|
# ? Apr 29, 2015 13:40 |
|
no
|
# ? Apr 29, 2015 13:42 |
|
Subjunctive posted:same reason you might learn another human language: give you a new perspective, let you understand more writings and participate in additional interesting conversations. lol no human communication is broader and more important than beep beep boop booping a computer. if it doesn't help me make money i'm not gonna learn a new programming language. that's just stupid.
|
# ? Apr 29, 2015 13:44 |
|
Blinkz0rz posted:lol no human communication is broader and more important than beep beep boop booping a computer. if it doesn't help me make money i'm not gonna learn a new programming language. that's just stupid. yes, my point is that you might choose to learn many things other than to be paid to perform them. if you're not interested in programming as a hobby, and you don't think that being able to participate in Haskell conversations about types and such will make you a better programmer (both of which are IMO reasonable positions) then by all means pass.
|
# ? Apr 29, 2015 13:47 |
|
i gotcha so then other than pet project knowledge, what do people actually use haskell for?
|
# ? Apr 29, 2015 13:48 |
|
nothing
|
# ? Apr 29, 2015 13:50 |
|
making arguments on the Internet
|
# ? Apr 29, 2015 13:54 |
|
whoops this isn't the pl thread
|
# ? Apr 29, 2015 13:59 |
|
As a Millennial I posted:hi pl thread should i learn rust yes. im having fun with it
|
# ? Apr 29, 2015 14:11 |
|
Blinkz0rz posted:i gotcha the guy that makes elm gets paid to make elm and elm is implemented in haskell
|
# ? Apr 29, 2015 14:12 |
|
haskell seems pretty nice for that kinda stuff but only .1% of programmers are doing that kinda stuff and the rest are all just gluing that kinda stuff together with high level imperative langs and that kinda stuff kinda stuff
|
# ? Apr 29, 2015 14:17 |
|
Deacon of Delicious posted:comin' in here with their monads, and their capital letters i meant all the scattergory theory stuff
|
# ? Apr 29, 2015 14:19 |
|
i'm thinking of writing a sql static analysis tool in F# for some of the weird sql poo poo we do at work but i'm too lazy
|
# ? Apr 29, 2015 14:20 |
|
what set of problems is haskell the right choice for
|
# ? Apr 29, 2015 14:34 |
|
Bloody posted:what set of problems is haskell the right choice for it seems pretty good for writing compilers, i guess
|
# ? Apr 29, 2015 14:39 |
|
i also think its the right choice for the types of small automation scripting stuff i do to make my job easier
|
# ? Apr 29, 2015 14:41 |
|
Blinkz0rz posted:i gotcha the primary use of Haskell is as a research and development language for creating new and useful features for real languages like c#.
|
# ? Apr 29, 2015 14:53 |
|
shaggar what is your opinion on F#?
|
# ? Apr 29, 2015 14:58 |
|
ive never used it but its functional so I probably would avoid it in favor of c#
|
# ? Apr 29, 2015 14:59 |
|
it certainly seems to have better syntax than most functional languages
|
# ? Apr 29, 2015 15:01 |
|
fart simpson posted:haskell is one of the least bad languages out there imho
|
# ? Apr 29, 2015 15:02 |
|
Bloody posted:what set of problems is haskell the right choice for the set that your professor gives you
|
# ? Apr 29, 2015 15:03 |
|
VikingofRock posted:I've been thinking about making a CoC Haskell thread for a while now, to help with little questions like this. Would other people here have an interest in that? I don't really have a ton of experience writing practical Haskell so it feels a little weird for me to make the thread, but I'd definitely be willing to put in the time to make/maintain the OP if no one else wants to. you should do this, or a general fp thread.
|
# ? Apr 29, 2015 15:34 |
|
haskell.org homepage tutorial posted:The fst function just gets the first value. It's called "fst" because it's used a lot in Haskell so it really needs to be short! i don't know if i can go on
|
# ? Apr 29, 2015 15:49 |
|
'car' is good if they wanted a three letter name that didn't make sense
|
# ? Apr 29, 2015 15:59 |
|
|
# ? May 27, 2024 22:03 |
|
that sentence is stupid tho because pattern matching means you're rarely using fst directly anyway i'm glad clojure avoided dumb names and stupid operators
|
# ? Apr 29, 2015 16:01 |