Saif Eddin Gmati

Results 156 comments of Saif Eddin Gmati

Closing, as we do not have a plan to do this now for the reasons stated above.

@veewee what do you think about this? could be really useful for chaining :) ```php Dict\get($arr, "foo") ->then(fn($value) => ...) ->then(fn($value) => ...) ->then(fn($value) => ...); ```

hm, returning none for invalid type would be a weird, and might be confusing, i think we can start by adding `get` and leave `get_typed` for later.

I think there's a solution, we use naming to indicate what the return will be. `Psl\Collection`s have a method named `at($k)` which throws if `$k` is not found, and `get($k)`...

`acquire` is not the best name out there, but that's what i have in mind right now, if you can think of something better, you can tell me :P as...

`find` is a no-go for me, `Vec\find($list, $x)` makes me think it's searching for an entry using `$x`. `try` is also a no-go, this conflicts with the undocumented async convention...

( there's also lock() vs tryLock(), it's more of a waiting convention, if `x()` might wait, there must be `tryX()` which doesn't wait )

this would allow people to include things like https://highlightjs.org to highlight code that is in the phpdoc, e.g: ```php

nice! that solves my problem, but i think having this done dynamic in the config without creating a theme directory and having to manually copy the assets is better, so...

this has been happening for a long period, but thanks to @veewee we discovered that it's related to thread configuration last night. You can replicate this behavior in the latest...