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
-
Kimmax111064yMy mans complaining about data types in a loosely typed language :D
At least you can set expected parameter and return types in newer PHP versions now -
@linuxxx Nice.
I'm pretty stoked for PHP 8 : >
It adds so much new features, tho I am mostly stoked about the JIT.
I've already ran some near-realworld tests (realworld app, simulated load) with my site's codebase a month or 2 ago and it has shown me quite significant increase in capability, the main issue at that point became the database :^) -
hjk10157314yType hints and annotations will go a long way especially if you use a decent IDE like PHPStorm.
-
@hjk101 I use VSCode tho.
Cus I don't like that I need to pay a fairly hefty (for my standards) fee for it... -
hjk10157314yI think they have the annotation parsing in intellisense too.
It's worth the price (it's reasonable) in my opinion, though I get it from the office. When an early access comes out you can get it for free though. -
@hjk101 Yea, Intellisense works quite alright for annotation parsing.
I mean, difference between you and me is that you probably get a decent pay :p
I'm currently unemployed so buying things to "improve development" is kinda a no-go unless it has a decent ROI (which is nothing atm cus I don't really get paid for anything) -
@FinlayDaG33k
Strict typing isn't new. Exists since PHP 7.
PHP 8s most awaited feature is WeakRefMap. -
@IntrusionCM well... yes but also no...
I can pass types in a function and what the function returns but I can't say:
```
int $myVar = 1;
$myVar = 'yes' // Exception here
```
Related Rants
-
justamuslimguy20All the stupid date functions where the days range from 1 to 31 but the months range from 0 to 11
-
sudo-woodo16Whatever the fuck Python's ternary operator syntax is supposed to be.
-
Root18Most hated language features? PL/SQL: • it exists XSLT: • it also exists PHP: • it still exists. VB:...
The inability to "lock" variables to certain types in PHP.
rant
wk229