Posts

PHP Records vs Structs: Simplifying Immutability in PHP

November 19, 2024
PHP is exploring two approaches to immutability: *Records* for concise, lightweight value objects, and *Structs* with Copy-on-Write for performance. *Records* reduce boilerplate, while *Structs* handle large data efficiently. Both proposals, promise to enhance PHP's capabilities. Which approach suits your needs?
structs records data

PHP 8.0: Object Initializer Proposal

September 26, 2019
Concept of the Object Initializer Expression as a simplification of object instantiation and properties initialization
class object initializer

Packages in PHP - Syntax conception

August 12, 2019
Concept of Packages in PHP - idea and thoughts about the way of implementing them inside PHP
package module

Packages in programming languages

August 12, 2019
Condensed description about what are packages in programming languages
package module

Array Repack Operator in PHP Concept

May 17, 2017
Concept of new operator concept for PHP which helps constructing new arrays with selective copy from source array
array