Comment

Comment by waheoo

I dont agree with you at all.

Why are you building arrays with mixed key types?

Why do you want type hints?

Why do you need generics in a dynamically typed language?

Php has pthreads. They just arent needed that often.

Async is being worked on You didnt mention it but immutable types are also being worked on.

Everything people complain about php over tends to actually make its way into the language eventually.

I dont know when you tried php, but I dont really think it was in earnest. It sounds like you had problems keeping your types straight.

I agree its not super natural to deal with the php type system but once you learn it its pretty simple to keep things in order.

I see most messes arise when people mix types, mutate variables carelessly, or otherwise over leverage things they shouldnt (e.g. globals)

But these are hygiene problems, and all languages have these.

Ive seen garbage java, ive seen hairballed rust, ive seen pretty much any c, ive seen wanky golang and ive seen babel-typescri-rea-tsx

The only thing that really annoys me about php these days is the dollar signs.

That and the frameworks are all trash.

parent waheoo 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton