Wrapping Up

We hope you’re convinced by now that Crystal is quite versatile in the way it handles method arguments. It has no trouble accepting and returning many values. Overloading through type restrictions makes your code more robust and often more performant, while using Procs wisely can make it more versatile.

In the next chapter, we’ll talk about classes and structs. Let’s see what Crystal brings to the table there.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.47.166