Comment

Comment by pilif

For classes it's enforced since PHP 5. For scalars you get to chose between enforcement or type coercion for callers on a per-file basis.

However, as with other dynamically typed and interpreted languages, all of this is happening at run-time, so one of the biggest benefits of strong typing (type checking at compile time) doesn't apply.

parent pilif 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton