I agree 100%. In my opinion, the one-liner is far *more* obvious since we're so used to the short <?php.
I do get the argument of "what about other declares", but really... who uses those? And when the day comes that we get another widely-used declare(), we can still revisit the topic. For the moment, a simple "the strict_types declaration goes in the first line, we don't specify what to do with the others" (okay, I know I'm simplifying a bit) will do the trick. Am Dienstag, 6. Dezember 2016 10:20:52 UTC+1 schrieb Jordi Boggiano: > > Well for having worked on a few projects with strict types everywhere, I > am not sure. Yes in those projects I tend to ignore it, but that's mostly > because I know it's there anyway. The bottom line is it doesn't matter a > whole lot visually speaking I suppose. If you open a file and don't know if > it has strict types or not, the two following things are probably equally > obvious. > > [image: Inline images 1] > > vs > > [image: Inline images 2] > > Same same, except we lose two lines for (I'd argue) nothing.. And IMO it > belongs with <?php as it really should be <?php-strict or something, given > how it changes the language. > > Anyway I guess it's too late and I won't change the outcome of this, but > for the record I have to say it: the day I open a class file and I can't > even see the `class` token, I shall weep. > > Cheers > Jordi > > On 5 December 2016 at 20:54, Woody Gilk <[email protected] <javascript:>> > wrote: > >> >> On Mon, Dec 5, 2016 at 12:30 PM, Larry Garfield <[email protected] >> <javascript:>> wrote: >> >>> I'd say the opposite: My brain is already trained to ignore the <?php >>> line as noise, so anything added to that line WOULD be missed. >>> >> >> Exactly this. >> >> -- >> Woody Gilk >> http://about.me/shadowhand >> >> -- >> You received this message because you are subscribed to the Google Groups >> "PHP Framework Interoperability Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/php-fig/CAGOJM6%2B_i-VXu1jtu_kj8pO2TonyKKdGmddXCA-U8-n-7FG75g%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/php-fig/CAGOJM6%2B_i-VXu1jtu_kj8pO2TonyKKdGmddXCA-U8-n-7FG75g%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jordi Boggiano > @seldaek - http://nelm.io/jordi > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/10e51ef8-dc11-4d59-96ee-60fbaae04454%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
