« first day (3410 days earlier)      last day (1529 days later) » 
00:00 - 11:0011:00 - 23:00

11:13 AM
Me trying to sneak in a bug fix 20 minutes before deploy: media.giphy.com/media/Z9O5ZRKceDxCw/giphy.mp4
 
wiki.php.net/rfc/platform_requirement_declares thoughts welcome, and yes I know controversial
 
please no more declares :(
 
Yes declares! All the declares!
 
11:31 AM
@MarkR Now there is two "tine" RFCs tp chat about ;-)
 
Now you have 6 minutes of content rather than 3? :P
 
@MarkR I'm not sure I'm on board with the idea? Like I get it but seems like composer will always do a better job (kinda?)
 
Composer only checks at the time its installed.
 
What if we had some configuration file per project/folder instead of the declares? Something like typescript has tsconfig.json
 
True, but that seems like a lot of effort to maintain to have the correct version constraints
 
11:34 AM
I'd expect it would be a single entry in namespace declares for the most part.
 
Well... that rfc it's from 2016. Pretty sure it won't be implemented :D
 
@MarkR I wish we could have a dedicated space for explicit dynamic properties, e.g. something like $obj->@prop; whatever
So that we can attach user defined storage to objects
 
@bwoebi You mean something other than adding to properties?
 
12:00 PM
@MarkR no, still adding to properties
 
I'm not sure I follow what you mean by attaching user defined storage then
 
but if without @, the property assignment fatals if not existing
and with @ you say "I know what I'm doing, please attach that prop"
because all the fuss around these prop-guards, in the end, is about preventing typos accidentally creating dynamic props
 
Ah I get what you mean now.
We would still need something to knock out legacy behaviour otherwise it would take a lot of code modification
 
@MarkR yeah, it'd need a longer transition period with E_DEPRECATED first
 
I suggested a behaviour modifying interface, Nikic pointed me to a declare, and now I'm working on wiki.php.net/rfc/platform_requirement_declares which could potentially change it for everything after <x> version?
 
12:06 PM
@MarkR I don't like that RFC … I mean … per file minimum versions? That's weird
your use case is usually per project minimum versions
which the composer require php >= does for you
 
Composer only validates at "composer install" as far as I know. Thus if you upgrade your version of PHP without re-running composer, assuming even 1% of people running sites even know what composer is, you could end up with different behaviour
 
@MarkR That's currently true, but one could easily make a PR to composer to check the version at autoloading time
or maybe even directly at the time of inclusion of the autoload.php
 
But if composer does it then it's disconnected from the engine, and we can't realistically expose it to the execution context to make behaviour based on it, such as only exposing certain new behaviour on new targets
 
@MarkR so … sort of like the editions nikita proposed?
 
Yup
I just wanted to add a detonate-on-compile first, get the basics in sooner, so that warning goes away, even if proper versioning doesn't come until 8.1, 8.2 etc
 
12:13 PM
hm. I must say I prefer things which transition slowly with deprecation
 
I'd expect both.... declare(platform_target=8.0) to get the new goodies immediately, everything else starts doing E_DEPRECIATED saying that it'll eventually be removed.
That way I would imagine you could have slightly longer deprecation cycles, while still powering ahead with breaking changes without having to wait 5 years.
 
Hopefully namespace declares gets some traction as well, otherwise we'll have a lot of boilerplace with the declares
 
Wasn't the debate that namespace declares were bad the first time around (still don't know why tho)
 
1:07 PM
@Girgias I thought it was more that couldn't decide on how to do it, namespaces vs global registers vs file resolving
 
Well the first time it was namespace, that got dismissed, than Nikita brought it up again as file resolving got dismissed again IIRC
 
1:44 PM
Hi all, How to set locale into session in codeigniter-4 for multi language application?
 
o/
 
\o
 
cmb
\o
 
1:59 PM
o/
 
2:43 PM
@MarkR I can live with 6 ;-)
 
that desperate? :P
 
well, @NikiC is ghosting me ... so ;-)
 
Well you did ask him to talk about generics after all...
 
hah, yes well
 
I could try and find time but my sleep patterns are practically non-existent at the moment due to workload so scheduling will be a pain
 
2:46 PM
@cmb what do you think about this docbug?
 
cmb
@Ekin maybe replace "is equivalent to" with "has the same effect as"?
 
that sounds good to me, do you think it needs more explanation why that is the case?
 
cmb
3:04 PM
I don't think so. There's a section about generators which already should explain the details.
 
right, cool
thanks for looking at it
 
3:24 PM
@MarkR I'm currently working on a "language evolution" overview RFC, I'd suggest waiting for that one
 
@NikiC O rly. Sure thing, I look forward to it.
 
3:36 PM
/me too
 
 
1 hour later…
4:47 PM
@NikiC can you share a few spoilers? :)
 
apparently it was used as a test case when they added i18n
 
 
3 hours later…
7:32 PM
@Ekin that's great, there are a lot of people in this area that speak like that too
 
 
3 hours later…
10:59 PM
sounds good but I'd get only the loaded extensions. I'm building a static analyzer so I should be able to detect classes from extensions that probably are not loaded in the machine running the tool.
Maybe loading all the extensions by myself and hardcoding the result in a class...
 
00:00 - 11:0011:00 - 23:00

« first day (3410 days earlier)      last day (1529 days later) »