logoalt Hacker News

smartmictoday at 2:06 PM2 repliesview on HN

From the article:

> I am also deeply sick and tired of maintaining large Python scripts recently, and crave the modularity and type safety of OCaml.

I can totally relate. Switching from Python to a purely functional language can feel like a rebirth.


Replies

voidUpdatetoday at 2:15 PM

While python isn't type safe, you can use Pylance or similar in combination with type hinting to get your editor to yell at you if you do something bad type-wise. I've had it turned on for a while in a large web project and it's been very helpful, and almost feels type-safe again

show 2 replies
IshKebabtoday at 3:47 PM

OCaml isn't pure.

show 2 replies