Coding with PHP 8.0: Attributes and the Nullsafe Operator
PHP 8.0 is out. I share how I've been using attributes and the nullsafe operator in real projects, and what they've actually delivered.
Category
Features, syntax and practices of the PHP, JavaScript, TypeScript, Go and Python languages. (Page 5/9)
This category has 49 posts.
PHP 8.0 is out. I share how I've been using attributes and the nullsafe operator in real projects, and what they've actually delivered.
PHP 8.0 isn't out yet, but the RFCs and beta releases are already readable. Here are my notes on three key features worth understanding before release.
The practical case for offloading repetitive transformation tasks to Python, with real script examples.
A practical guide to PHP exceptions and error handling: try-catch-finally blocks, multiple catch clauses, custom exception classes, and global handlers.
I explore what you get — and what you don't — when building a small HTTP service with Go's net/http package, and where the framework threshold sits.
PHP 7.4 was released in November 2019. Typed properties and arrow functions significantly strengthen the language's type system and syntax.