3 ms·
> C string handling isn't anything scripting languages should copy. Or C-like imports, it's ridiculous tbh, inlcude, inlcude_once, require, require_once. My u
by dsego 4y ago
> C string handling isn't anything scripting languages should copy.
Or C-like imports, it's ridiculous tbh, inlcude, inlcude_once, require, require_once.
My understanding is that PHP started as a basic templating language, a way to embed c function calls as tags in HTML.
In that way it's ingenious, people keep reinventing it with JSX, filesystem routing etc. Right now I'm thinking PHP should've gone the other way. Instead of adopting features to resemble other general purpose languages (things like classes from java and so on) it should've doubled down on web stuff, like JSX - in the sense of having a nice syntax for partials/components, eg <php-component props /> instead of <?php echo php_component(props) ?> and other comfort features, to become a platform.