On Mon, Mar 16, 2020, at 11:25 AM, Nicolas Grekas wrote: > > > I repeat what I wrote before but all those problems would disappear if we > > > were to bind the proposal to visibility: > > > https://externals.io/message/108675#108753 > > > > > > We could even consider splitting "read" and "write" in two separate > > > keywords, each bound to visibility, isn't it? > > > > How would 2 separate keywords work, syntactically/visually? I can see how > > it would solve a larger cluster of use cases, but I'm not sure what the > > code would look like. :-) > > > > Hum dunno, I throw the idea to fish for interest and now I can not figure > out an answer to your question... :P > Back to my previous suggestion on my side, which provides the core of the > benefits we strive for IMHO... > > Nicolas
My best off-the-cuff thought would be compound name keywords. readpublic writeprotected string $foo Or something like that. Which... looks kind of ugly since I don't think we can do kebab case keywords. :-) --Larry Garfield -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php