Tuesday, August 1, 2023

Python to Rust


1.Error handling - Rust vs Python

    Every programming language come up with strategies to handle recoverable and unrecoverable errors.

Most languages do not distinguish between these errors. But Rust has a type of Result<T,E>  for recoverable errors and panic! macro for unrecoverable errors.

Unrecoverable Errors with panic!
      

2.CLI arguments

3.Types 

4.functions and closure 

5.Class and struct

6.iterator and functional programming 

7.testing and test frame work

8. Visibility- pub and private 

9.async programming 

10.Concurrent programming and parallel programming 

11.File Reading and IO 

12.Network programming 

13.Serialization and deserialization 

14.Decorators and Macros in Python vs Rust

No comments: