Compiler optimization

Immutability and referential transparency help compilers to perform extensive optimizations, replacing the need of manual optimization of code and free programmers from this trade-off.

For example, this applies when you're using compile time constants (const val), as the compiler knows that the value of those variables will never change.

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

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