Book: Mojo By Example is now updated with changes corresponding to Mojo 0.26.2

Hi all,

New update has been released for the book Mojo By Example. You can find the latest at: Mojo By Example: A Comprehensive Introduction to the Mojo Programming Language

I have updated the book with the new language changes up to 26.2.

The changes from last version is available in: Mojo By Example: A Comprehensive Introduction to the Mojo Programming Language

Regards

1 Like

This is really amazing work Indukumar! One minor suggestion: it could clean up some of the examples to remove the “now synthesized” code as well. For example, you don’t need to implement copyinit and moveinit for many of the Copyable and Movable examples - the compiler will synthesize elementwise implementations by default.

Overall, I really like the approach, it is a great way to learn a language. Thank you for writing and maintaining it!

Thanks a lot for your kind words! It means a lot. Sure I will remove the synthesized functions and just mention that those are synthesized by the compiler…

Now the book is updated to remove the spurious copyinit and moveinit. I have still kept it for some cases where it either shows to the reader how it works, or if the default generated methods are not enough.

1 Like