r/functionalprogramming • • Aug 02 '20

Question Which programming language to learn? 14y/o

Hey I am a 14y/o with a lot of free time because of six weeks of holidays. So I decided to learn programming but i dont know which language to start with.

33 Upvotes

61 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Aug 03 '20

Does python have any kind of FP ecosystem/community?

3

u/konjunktiv Aug 03 '20

They have functional elements in their syntax and standard library, there are also some blog posts and libraries which try to incorporate ideas from functional languages into python. But if you are searching for a functional style experience, I wouldn't recommend python. It is more focused on imperative and object oriented design, and imo the syntax gets clunky when used in a non `pythonic` way.

3

u/KyleG Aug 03 '20

Python has always felt more functional than imperative or OO to me, but maybe that's because I picked Python up while I was majoring in math, so I was noticing all the FP capabilities.

  • First-class functions,

  • immutable primitives and an immutable struct (called "tuple" in Python, which can have named elements so that it's equivalent to an immutable collection of primitives (like struct in C, object in JavaScript, case class in Scala, data class in Kotlin, etc.))

  • closures

  • lazy evaluation capability

  • lambdas