PHP 7 mit skalaren Typen

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/php-7-mit-skalaren-typen_242425/page_1 - zur Vollversion wechseln!


Nico schrieb am 17.03.2015 um 19:20


auf weitere Features bin ich gespannt..


Rektal schrieb am 19.03.2015 um 11:01

Bin auf die Auswirkung in der Praxis gespannt. Stichwort compatibility/caveats.


Obermotz schrieb am 19.03.2015 um 11:12

Ich glaube, dass sich Personen, die PHP beherrschen und schon laenger benuetzen nicht umstellen werden, ausser bei groesseren und enterprise Projekten.
Alle, die auf strong typing stehen, werden nach wie vor nicht PHP sondern ihre Sprache verwenden.


Nico schrieb am 12.06.2015 um 21:08

Zitat
PHP 7.0.0 Alpha 1 comes with new version of the Zend Engine with features such as (incomplete list):

•Improved performance: PHP 7 is up to twice as fast as PHP 5.6
•Consistent 64-bit support
•Many fatal errors are now Exceptions
•Removal of old and unsupported SAPIs and extensions
•The null coalescing operator (??)
•Combined comparison Operator (<=>;)
•Return Type Declarations
•Scalar Type Declarations
•Anonymous Classes


Obermotz schrieb am 12.06.2015 um 21:10

Doch sehr nice Features!


11Fire01 schrieb am 17.06.2015 um 14:25

muss man dann int verwenden?

da muss man ja über alles nachdenken, bissl nervig, und vorteil seh ich keinen :p


Obermotz schrieb am 17.06.2015 um 16:41

Du musst einmal drueber nachdenken und nachher nicht mehr.
Anstatt jedes Mal darueber nachzudenken wenn du den Code liest ;)

Weiters musst du nicht mehr darueber nachdenken wenn du andere Klassen verwendest, da die IDEs das Autocomplete dann ohne phpdoc generieren kann..


Longbow schrieb am 17.06.2015 um 16:47

Zitat von 11Fire01
muss man dann int verwenden?

da muss man ja über alles nachdenken, bissl nervig, und vorteil seh ich keinen :p
so hab ich mir das beim umstieg von javascript auf swift auch gedacht und ganz ehrlich

i <3 strong typing!


Rektal schrieb am 17.06.2015 um 22:43

Ich fuehl mich da immer zerissen; einerseits #movefast (und das "spuer" ich mit Java/C# , bei den strong typed Sprachen, nicht), andererseits weil ich "type safety".

Insofern find ich die Richtung von PHP als angenehmen weg. Z.b. ist JS mit NodeJS der absolute craze aber wie oft ich den Code wegen "method foo not found on undefined" habe, geht auf keine Kuhhaut. Wobei die IDE "eh hilft" aber da kommmt im Falle von JS keine richtig mit, wenn du viele npm module hast. Dagegen fuer PHP, fast deppensicher. Hab ich fast nie type probleme mehr.

Amen & Peace :-D


COLOSSUS schrieb am 17.06.2015 um 23:20

Mit Duck Typing und impliziter Type Coercion fliegt dein Code halt erst zur Laufzeit - und dann auch noch sehr subtil, und nicht in allen Faellen! - aufs Maul. ;)


Rektal schrieb am 18.06.2015 um 00:11

oder: in your face :D


Nico schrieb am 15.12.2015 um 19:33

inzwischen released

Zitat
It is not just a next major PHP version being released today. The release being introduced is an outcome of the almost two years development journey. It is a very special accomplishment of the core team. And, it is a result of incredible efforts of many active community members. Indeed, it is not just a final release being brought out today, it is the rise of a new PHP generation with an enormous potential.

is da was für oc.at dabei? :)




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2026