Re: [VOTE] Expectations

From: Date: Sun, 22 Feb 2015 23:16:55 +0000
Subject: Re: [VOTE] Expectations
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-83505@lists.php.net to get a copy of this message
Hi! > I do not see much gain today to "improve" them while I do not see why we > should not. It does not hurt. The gain is simple - today, assertions have costs so people that are performance-conscious (rightly or wrongly) use them less than they could. We can make them cost-less in production, while preserving their advantages in the test environments (also makes code easier to follow btw if asserts show which invariants are being enforced). Unit tests only provide for assertions in test code, but cost-less asserts can help you ensure that code works the way you intended all the way through, without paying for that with performance. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#83505) next »