Re: The @@ is terrible, are we sure we're OK with it?

From: Date: Wed, 22 Jul 2020 14:07:21 +0000
Subject: Re: The @@ is terrible, are we sure we're OK with it?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-111117@lists.php.net to get a copy of this message
My suggestion is the tilde (~). Currently is used only as the bitwise NOT operator, but in this context seems to not have any problem. ~ Attribute1(~1) ~ Attribute2(...) function withAttribute() { ... } Or then we could use another more detailed syntax: <-- Attribute(...), ... --> :: Attribute(...), ... Or even create a new keyword like: with Attribute(...), ... function withAttribute() { ... } And in last case, just use nothing but the attribute itself as a prefix: Attribute(...) function withAttribute() {...} Atenciosamente, David Rodrigues Em qua., 22 de jul. de 2020 às 10:58, Côme Chilliet < come.chilliet@fusiondirectory.org> escreveu: > Le Wed, 22 Jul 2020 13:00:10 +0100 (BST), > Derick Rethans <derick@php.net> a écrit : > > Please, let's do the sensible and use the Rusty #[...] syntax. > > This syntax is the one I liked the less in the proposed choices, given # is > used for comments. > > Wouldn’t #[] cause more parsing issues than @@? > > What would be the rule, it’d be illegal to start a comment content with > '['? > > Côme > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >

« previous php.internals (#111117) next »