News for hackers. Stuff that matters.
Re:Show HN: Verify JSON using minimal schema by dehrmann on Thursday April 16, 2020 @03:28AM (#22887010)
I've worked with Python professionally for 3-5 years, but only type-hinted Python for ~5 months. This is coming from someone who prefers Java, but I don't like Python type hints because they were bolted onto the language worse than classes, type hierarchies aren't mature, and if I wanted types, I'd be using Java. That said, you do need strong typing for a project once it hits a certain line count or developer count.
Re:Show HN: Verify JSON using minimal schema by baq on Thursday April 16, 2020 @11:40AM (#22890508)
Java's type system is weaker than what Python's typing provides. If you want to make fun of Python's type system, compare it to TypeScript, ocaml or haskell. Python's typing is actually useful even if it's bolted on and the typeshed is incomplete.
Re:Show HN: Verify JSON using minimal schema by BiteCode_dev on Thursday April 16, 2020 @03:52AM (#22887129)
Yes, the type system is clearly not well integrated.

My point is, I'd rather have a not so perfect one when I need it, that None at all.

And most of the time I don't need one.