My long response was eaten.
In short - if the goal is optimization, using simple operators compiles down to a single instruction for each operator where a standard library call requires relatively significantly more overhead.
In this sort of application where optimization isn't needed, writing for clarity is superior. When I encounter code that is needlessly clever I want to stab things.
In short - if the goal is optimization, using simple operators compiles down to a single instruction for each operator where a standard library call requires relatively significantly more overhead.
In this sort of application where optimization isn't needed, writing for clarity is superior. When I encounter code that is needlessly clever I want to stab things.