101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

480
active users

#php

75 posts68 participants4 posts today
Replied to Derek Martin

@lo_fye The syntax currently used in PHP was borrowed from Rust, but it was not the original syntax adopted. We went through multiple RFCs and votes before arriving at the current syntax. It was not an easy decision. These are the four RFCs (all accepted) that led to the current syntax. As you can see, it was very contentious.

- wiki.php.net/rfc/attributes_v2
- wiki.php.net/rfc/attribute_ame
- wiki.php.net/rfc/shorter_attri
- wiki.php.net/rfc/shorter_attri

wiki.php.netPHP: rfc:attributes_v2

I know I’m late to this game but does anyone else strongly dislike the syntax & aesthetics of #[\Attributes] in #php ? To me they feel like something distinctly unphp-ish that was glued onto php. I like how they work, I just wish they matched the language better.

Dear #lazyweb; Does anyone remember when #php added the mysql:localhost == mysql:/tmp/mysql.sock "optimization"? I know it's freaking ANCIENT, but I can't quite be bothered to track it down.

Also, was this because MySQL used to do it and PHP wanted to preserve that for BC reasons after MySQL removed the "helpful" behavior?

What if your PHP functions could pause, resume, and remember where they left off, like little self-aware scripts? ⏯️

That’s what coroutines are for, and PHP gives you two tools to use them: Generators (since 5.5) and Fibers (in PHP 8.1).

🥔 🔥 I break it all down with real code, plus a hot potato metaphor you won’t forget:
doeken.org/blog/coroutines-in-

doeken.org · Exploring Coroutines in PHPCoroutines are functions that pause and resume with state, allowing flexible, bidirectional control flow in PHP.