| ▲ | squeegmeister 4 hours ago | ||||||||||||||||||||||
Have also wondered how Haskell would be. From my limited understanding it’s one of the few languages whose compiler enforces functional purity. I’ve always liked that idea in theory but never tried the language | |||||||||||||||||||||||
| ▲ | ruszki 4 hours ago | parent | next [-] | ||||||||||||||||||||||
You can write in it like in imperative languages. I did it when I first encountered it long time ago, and I didn’t know how to write, or why I should write code in a functional way. It’s like how you can write in an object oriented way in simple C. It’s possible, and it’s a good thought experiment, but it’s not recommended. So, it’s definitely not “enforced” in a strict sense. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | 0x3f 4 hours ago | parent | prev [-] | ||||||||||||||||||||||
I think the intersection of FP and current AI is quite interesting. Purity provides a really tightly scoped context, so it almost seems like you could have one 'architect' model design the call graph/type skeleton at a high level (function signatures, tests, perf requirements, etc.) then have implementers fill them out in parallel. | |||||||||||||||||||||||
| |||||||||||||||||||||||