Viewing profile — bwoebi
bwoebi
HN member- Joined
- Fri, Nov 15, 2024, 2:18 PM UTC
- HN karma
- 10
- Public activity
- 8 items
- HN profile
- View on Hacker News ↗
About bwoebi
No profile information was provided.
Recent public activity
-
comment
Comment #48251042
The key type changing is generally not a problem per se, but it's definitely odd with the default re-indexing behaviour depending on whether something is integer keys only or not. …
-
comment
Comment #48249440
Arrays in PHP are mostly confusing if you are used to them in other languages. Instead of $array[0] - the first element is accessed via array_first(). Having them as key-value mean…
-
comment
Comment #42209808
C# 13 has this via the field keyword (as preview feature): https://learn.microsoft.com/en-us/dotnet/csharp/language-ref... It's pretty similar to what PHP provides here, except tha…
-
comment
Comment #42209767
While variable-length lookbehind is surely more comfortable to work with, I found clever usage of \K to be largely sufficient in most cases. But I agree, a great feature!
-
comment
Comment #42209744
readonly is rather a misnomer for "writeonce" in PHP. And as such it also disallows repeated assignment in class scope, while private(set) has no such restriction.
-
comment
Comment #42209730
array_find parameter ordering is modeled after other non-variadic array functions, e.g. array_filter also having ($array, $callback) order. But I agree, there is already some incon…
-
comment
Comment #42150123
I found this approach works best with languages having method overloading. For PHP it felt quite limiting, and it also requires you to have more complexity and overhead with wrappi…
-
comment
Comment #42147191
One of the main advantages of actually allowing more arguments is forward compatibility: You can, within a library, provide an additional argument to a callback without actually in…