Thanks for your kind and helpful comments! It’s awesome.
The fact that function in python is first-class as you mentioned make me think it can be possible to write code in functional way.
Yeah… composition is key to functional programming I think.
Composing functions, Composing types(algebraic type system?) bla bla…
It’s mind-blowing experience for me to watch pipeline-oriented and railway-oriented programming talks in Youtube (it’s all about composing functions), and see Rust’s official books about error and null? handling such as Result, Option.
I found the open source projects related to above things such as
- GitHub - InvestmentSystems/function-pipe: Tools for extended function composition and pipelines in Python
- GitHub - dry-python/returns: Make your functions return something meaningful, typed, and safe!
- GitHub - ForeverWintr/metafunctions: metafunctions is a function composition library for python.
and many others.
I am a quite novice, so all thoses are not easy for me to understanding implementations and I want to build it by myself using plain, standard library python as possible as I can. I hope that It can be valuable for me to learn basic and core concepts about programming and python itself.
Anyway, thanks for your reply. I have learned a lot from you!!