Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I love how everybody hates on Java and then praises PHP for getting closer and closer to copying everything from it
-
arekxv10525y@12bitfloat Even if PHP copies all it will still be better than Java just because its not so verbose and you can have different outputs. And just in case it needs saying, Type safety is not a concept Java invented :)
The only thing I would love is if PHP would improve on this and allow for type mixing and all that nice type things from Typescript :) -
Typed properties are awesome and I can't wait till 7.4 is stable. Why are you adding property names in phpdocs btw?
-
@gronostaj PHPStorm always suggests it and I've been doing it automatically ever since I started using it
-
p100sch14465yA var when you are too lazy to write out the type is fine. C# has no issues keeping track of the type anyway.
-
@p100sch I prefer always defining the type though, then I don't have to keep the type in my memory while debugging
-
josap2115yTotally agree, typed dynamic languages are seriously handy.
The only thing I would have preferred was to have types on the right, but I understand that's very subjective -
@alexbrooklyn Huh, for me it autogenerates names on variables, but on properties it doesn't. Maybe there's a setting for that...
-
zetef4395yomg i feel you. i thought that making software with c++ and sdl2 was hard, then switched to lua and love2d where there are types of values, not variables. just now i feel how much i miss my typed variables... (but still, lua is pretty cool tbh, works great with the c api)
!rant
YES YES YES YES YES
GIMME SOME OF THOSE TYPED PROPERTIES <3
When I first started trying out Java I hated that I had to type every variable I declared, coming from a javascript and php background
nowadays I can't live without them, it feels so safe and secure <3 <3 <3
rant