Brent 8/25/2022

Asymmetric visions

Read Original

This article examines a new PHP RFC proposing 'asymmetric visibility' for class properties, allowing them to be publicly readable but only privately writable. It discusses the RFC's use cases and benefits but raises concerns about its overlap with the recently introduced 'readonly' properties, warning against making new language features obsolete too quickly.

Asymmetric visions

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser