44
Statically Typed Functional Programming with Python 3.12
(wickstrom.tech)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
I don't think I would call this functional. Python is decidedly not at all functional - there's no way to declare arbitrary functions inline, no chaining of map/filter etc.
But the static types are definitely welcome. I didn't know about the
type
keyword. Apparently it makes it support forward references.Does it have higher-order functions? Yes, therefore you can use it to do functional programming.
Everything else is syntactic sugar.
Functional programming doesn't just mean higher order functions. There's a range of other features that it implies.