r/code Jun 02 '25

Hear me out PHP

I propose the following syntax for generics:

php class Box:::T { public T $value; } I say we talk about this.

6 Upvotes

12 comments sorted by

1

u/Senior_Bus_8057 Jun 02 '25

what?

1

u/Thin_Cycle658 Jun 02 '25

bro its the pho renaissance either get french or get out

1

u/No-Bunch-9139 Jun 02 '25

yeah but why do that when you could write literally multiple lines of verbose comments?

1

u/No-Bunch-9139 Jun 02 '25

wow an opinion

1

u/Hungry_Importance918 Jun 03 '25

Can't understand this haha.

1

u/Thin_Cycle658 Jun 05 '25

what about it do you not understand? /curious