Re: String enums & __toString()

From: Date: Sat, 17 Aug 2024 00:48:22 +0000
Subject: Re: String enums & __toString()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-125016@lists.php.net to get a copy of this message
On Aug 16 2024, at 6:49 pm, Rob Landers <rob@bottled.codes> wrote: > > That being said, I would like to be able to use | and & on integer enums more than I would > strings as stringables. Something like “flags” mode in C#. Maybe even make “flag” a backing > type of enums. It would make a ton of json flags much simpler to reason about (and > filters/sanitizers). It'd be nice but I'm not gonna argue about the integer flavors of the enums right now :)

« previous php.internals (#125016) next »