To lighten up some discussion here, I would like to ask what features or changes you would love to see in future PHP versions? We know that in recent versions a lot of nice adjustments were added, but I bet most of us dreams for more.

I personally would love to see types on inline variables, at first even not strict. However, I don’t know if it’s remotely possible with how currently the language is implemented.

  • Zany Hog@lemmy.jcaks.net
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I’m keen for this community to gain some traction, hopefully it’s a bit less toxic than our reddit counterpart.

    I would love to see Generics and custom Types in PHP. Generics for obvious reasons. And Types so we don’t need to create a DTO just for type-hinting of objects. Combined with Generics, so we can have typed Arrays!

    • SALT@lemmy.my.id
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I’m keen for this community to gain some traction, hopefully it’s a bit less toxic than our reddit counterpart.

      I’m curious, does brent_gd is that bad in moderating /r/php ? Or it’s just they community is toxic there?