I think it is possible that PHP is still the best choice for web development in 2020. I'm coming from an academic background and i was looking to learn a new backend language to create simple CRUD type, web applications. I already know c/c++, java, js and some python but after research it seems that Rails, Laravel and Django are the best options for this kind of projects as javascript on the backend is still a mess.…
PHP 8.0.0 beta 2
101–102 of 102 posts
Re: PHP 8.0.0 beta 2
#102Article with an overview of the changes: https://stitcher.io/blog/new-in-php-8 Some highlights are union types, a JIT compiler, named arguments, annotations, and match expressions. The approach to named arguments is interesting. It's nice that you don't have to change the signature of existing functions, but the downside seems to be that you can't enforce the usage of named arguments on callers, as in other languages…
> Python where keyword arguments need to be declared as such. In Python you don't need to explicitly declare keyword arguments either (though it is possible). This is perfectly valid and working: def foo(a: str, b: int, c: bool=None, d: float=None): pass foo(b=5, a='something', d=3.0) # is equivalent to foo('something', 5, None, 3.0)