44
submitted 6 months ago by mao@lemmy.sdf.org to c/python@programming.dev

Neato

you are viewing a single comment's thread
view the rest of the comments
[-] FizzyOrange@programming.dev 8 points 6 months ago

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.

[-] wewbull@feddit.uk 2 points 6 months ago

Does it have higher-order functions? Yes, therefore you can use it to do functional programming.

Everything else is syntactic sugar.

[-] FizzyOrange@programming.dev 4 points 6 months ago

Functional programming doesn't just mean higher order functions. There's a range of other features that it implies.

load more comments (7 replies)
this post was submitted on 24 May 2024
44 points (97.8% liked)

Python

6420 readers
36 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS