On Friday, 10 January 2014 at 14:30:05 UTC, Jacob Carlborg wrote:
On 2014-01-10 15:13, marcpmichel wrote:
I can't understand why you need two methods; maybe there's a very good
reason for that.

For optimization reasons. You don't always need both "popFront" and "front".

In C++ another reason is exception safety. I am not sure if this holds for D as well since structs have different semantics for copy/move.

Reply via email to