2 ms·
> I want to stop using a language still forcing me to type semi colons. Fuck it, go one step further and stop using languages that expect you to use any forma
by stephenr 8y ago
> I want to stop using a language still forcing me to type semi colons.
Fuck it, go one step further and stop using languages that expect you to use any formal syntax. Just write down "Computer do this thing! Now, good and bigly like!" and then wait for it to happen.
Of all the fucking complaints about a language "requires semicolons" is the most ridiculous thing I've heard (and no you're not the first place I've heard it, but it's still as ridiculous now as it was the first time I heard it).
> Ruby, Python, JS all don't ask you for semi colons.
Except, JS does require semicolons, it just happens to be able to insert them for you in some situations.
> Array expression is also too verbose in PHP
Array syntax in PHP is the same as in JS: `['foo', 'bar', 'bar'];`. Oh that nasty semicolon is the "verbose" part I bet?
- h1d 8y ago> Array expression I meant as in $hash['member'] vs hash.member
- stephenr 8y agoWell that isn't even an Array in Javascript, so already I'm beyond caring what you mean.
- halfnibble 8y agoI understood that "array expression" meant "associative array", and that the closest equivalent in JavaScript is an Object. But I don't consider myself a PHP guru.