Click here to Skip to main content
15,891,431 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
QuestionRe: Scala is the new golden child Pin
Super Lloyd14-Jun-16 12:08
Super Lloyd14-Jun-16 12:08 
AnswerRe: Scala is the new golden child Pin
raddevus14-Jun-16 12:29
mvaraddevus14-Jun-16 12:29 
GeneralRe: Scala is the new golden child Pin
Super Lloyd14-Jun-16 12:47
Super Lloyd14-Jun-16 12:47 
GeneralRe: Scala is the new golden child Pin
raddevus14-Jun-16 15:55
mvaraddevus14-Jun-16 15:55 
GeneralRe: Scala is the new golden child Pin
Sander Rossel14-Jun-16 21:32
professionalSander Rossel14-Jun-16 21:32 
GeneralRe: Scala is the new golden child Pin
Rob Grainger14-Jun-16 22:28
Rob Grainger14-Jun-16 22:28 
GeneralRe: Scala is the new golden child Pin
Super Lloyd15-Jun-16 4:05
Super Lloyd15-Jun-16 4:05 
GeneralRe: Scala is the new golden child Pin
Sander Rossel15-Jun-16 11:04
professionalSander Rossel15-Jun-16 11:04 
Compare that to Haskell (from the top of my head).
There is the func1 . func2 . func3 syntax, which is true composition (or, mathematically, (g o f)(x)=g(f(x)).
Then there is the following.
add x y = x + y
increment = add 1

Is this currying or partial application? I never seem to know Laugh | :laugh:
And of course Haskell (and F#) functions are pure, meaning they have no side effects.
C# functions aren't really functions in the mathematical meaning, they are procedures.
Because functional languages are basically math you can reason about programs (in theory). You just know that an add function will always have the same output for the same input. You also know that the order in which you execute functions don't matter to the workings of that function. There isn't some hidden variable anywhere that gets set when you execute another function first Smile | :)

But having mathematical functions is just one feature of functional languages. Let's not forget immutability and (complete) lazy evaluation!
Unfortunately, I haven't yet discovered if "studying evening after evening wondering how the hell to do something, that would've taken you a minute in C#, because you can't have state or mutability" is also a feature Laugh | :laugh:
Read my (free) ebook Object-Oriented Programming in C# Succinctly.
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Scala is the new golden child Pin
Super Lloyd15-Jun-16 12:26
Super Lloyd15-Jun-16 12:26 
GeneralRe: Scala is the new golden child Pin
Rob Grainger15-Jun-16 23:07
Rob Grainger15-Jun-16 23:07 
GeneralRe: Scala is the new golden child Pin
Sander Rossel16-Jun-16 1:59
professionalSander Rossel16-Jun-16 1:59 
GeneralRe: Scala is the new golden child Pin
Rob Grainger16-Jun-16 5:00
Rob Grainger16-Jun-16 5:00 
GeneralRe: Scala is the new golden child Pin
Rob Grainger15-Jun-16 22:58
Rob Grainger15-Jun-16 22:58 
GeneralRe: Scala is the new golden child Pin
Super Lloyd16-Jun-16 5:18
Super Lloyd16-Jun-16 5:18 
GeneralRe: Scala is the new golden child Pin
Rob Grainger16-Jun-16 9:20
Rob Grainger16-Jun-16 9:20 
AnswerRe: Scala is the new golden child Pin
Super Lloyd14-Jun-16 13:02
Super Lloyd14-Jun-16 13:02 
AnswerRe: Scala is the new golden child Pin
Rob Grainger14-Jun-16 22:27
Rob Grainger14-Jun-16 22:27 
GeneralRe: Scala is the new golden child Pin
raddevus15-Jun-16 3:26
mvaraddevus15-Jun-16 3:26 
GeneralRe: Scala is the new golden child Pin
Kevin McFarlane16-Jun-16 1:31
Kevin McFarlane16-Jun-16 1:31 
GeneralRe: Scala is the new golden child Pin
Rob Grainger16-Jun-16 5:03
Rob Grainger16-Jun-16 5:03 
GeneralRe: Scala is the new golden child Pin
Kevin McFarlane16-Jun-16 5:12
Kevin McFarlane16-Jun-16 5:12 
GeneralRe: Scala is the new golden child Pin
Rob Grainger16-Jun-16 9:22
Rob Grainger16-Jun-16 9:22 
AnswerRe: Scala is the new golden child Pin
Kevin McFarlane15-Jun-16 0:19
Kevin McFarlane15-Jun-16 0:19 
GeneralWhat about me...? Pin
Chris Maunder15-Jun-16 8:38
cofounderChris Maunder15-Jun-16 8:38 
GeneralRe: What about me...? Pin
Kevin McFarlane16-Jun-16 1:44
Kevin McFarlane16-Jun-16 1:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.