3 ms·
I have to wonder if the author has ever used a strong, dynamically typed functional language like Clojure or Elixir or if his dynamically typed language experie
by AlchemistCamp 3y ago
I have to wonder if the author has ever used a strong, dynamically typed functional language like Clojure or Elixir or if his dynamically typed language experience is limited to JavaScript, Python and very similar languages.
It’s very easy to make up one’s mind about something and then completely stop learning.
- spprashant 3y agoAsking because I am curious to learn, how does a language being functional matter here? As I understand it Python is also strongly typed, while JavaScript is not.
- AlchemistCamp 3y agoIn Python, variables are mutable and being a class-based OO language, there’s often a lot of state that isn’t immediately clear when inspecting nearby code. By working with immutable structs and pattern matching, you can get many (but not all) of the same guarantees you would from static types.
- tomtheelder 3y agoI have worked extensively in Elixir and it only made me feel more strongly that static typing is the way to go. The sheer mental overhead caused by the lack of typing in Elixir is the biggest productivity killer for me when working in that language, and refactoring is almost as much of a nightmare as it is in something like JS. For me, strong and dynamic is the worst possible combination. I actually need to be precise with types, but the language gives me no help. I think Elixir has the best combination of runtime and tooling and ecosystem out there, and it’s type system is the only thing that prevents me from using it for nearly everything.
- ddejohn 3y agoPython is strongly typed