▲ 183 ▼ If C++ has undefined behavior, Rust has childish behavior (lemmy.world) submitted 3 years ago by AlmightySnoo@lemmy.world to c/programmerhumor@lemmy.ml 39 comments fedilink hide all child comments (joke in the title stolen from a redditor) Context: some Rust kid vandalized cppreference.com today.
[–] CanadaPlus@lemmy.sdf.org 3 points 2 years ago (1 child) Is PHP strongly typed? permalink fedilink source parent hideshow 1 child comment replies: [–] xmunk@sh.itjust.works 3 points 2 years ago It's a choice left up to developer but you can have static and runtime type checking enabled for as many functions as you desire. Theoretically you can have collection subtype checking but I'd say that PHP is still quite frail here as proper collection typing lacks any template-style typing but needs dedicated collection types. permalink fedilink source parent
[–] xmunk@sh.itjust.works 3 points 2 years ago It's a choice left up to developer but you can have static and runtime type checking enabled for as many functions as you desire. Theoretically you can have collection subtype checking but I'd say that PHP is still quite frail here as proper collection typing lacks any template-style typing but needs dedicated collection types. permalink fedilink source parent