|
|
|
|
|
by madelyn
2176 days ago
|
|
You can definitely implement a lot of functional concepts in Python though. I write Python in a really functional style, and sure I had to define things like `compose` in a module but it works ok. I find that once code starts getting higher level, you need lambdas less. Ex. You have functions or objects that generate common callbacks you can plug wherever you want. There's also great functional libraries. Funcparserlib is amazing, and you can wrap sqlalchemy core in a functional way. Plus there is always Hylang which works perfectly with existing Python code. You don't have type safety but there's not much stopping you from having a good time with it! At least, in my experience. It's not Haskell though, and never will be. |
|