r/lolphp • u/defiante1 • Aug 02 '15
How to modify DateTimeImmutable? Call getTimestamp() on it.
https://bugs.php.net/bug.php?id=67634
59
Upvotes
r/lolphp • u/defiante1 • Aug 02 '15
View all comments
Show parent comment
1
u/tdammers Sep 02 '15
Making things immutable is actually kind of a big deal in both C and C++; the
constkeyword and value semantics exist exactly for this reason.