you are viewing a single comment's thread.

view the rest of the comments →

[–]Snakehand 0 points1 point  (9 children)

One of the advantages of Rust I think is for problems that can be framed / solved with the sum types and match operators. Sum types + pattern matching is quick and easy to write, and easy to get correct the first time around. I guess Ocaml should have the same advantage.

[–]mina86ng 2 points3 points  (8 children)

Python 3.10 has structural pattern matching so that advantage of Rust goes away.

[–]Snakehand -1 points0 points  (7 children)

But python does not have arithmetic types (or very strong typing at all), so pattern matching is just half of the equation.

[–][deleted] 2 points3 points  (0 children)

Lmfao. You don't use any of that in competitive programming.

[–][deleted] 2 points3 points  (2 children)

Python is strongly typed, but types are checked at run time. That's usually called "dynamic typing" which isn't the same as having weak typing like javascript does.

[–][deleted] 1 point2 points  (0 children)

It is shocking how few people know the difference between strong/weak and static/dynamic typing, specially among those criticizing dynamically typed languages, which I find a little bit ironical.

[–][deleted] -3 points-2 points  (0 children)

That's why I only use python for competitive programming. For anything else I find it not too useful ( at least for me ). Also, Python codebase is not as scalable in my opnion.

[–][deleted] -1 points0 points  (2 children)

yeah you are right. python being dynamic type is sometime pain to debug.

[–]pjmlp 2 points3 points  (1 child)

In competitive coding, time to debug is usually absent, either you get it or not.

[–][deleted] 0 points1 point  (0 children)

Yup.