Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by setopt

10 hours ago

> A type is a contract, not a hint!

In Python it is a hint.

2 comments

setopt

Reply

rurban  9 hours ago

Exactly. That was their worst mistake ever

  • setopt  4 hours ago

    I agree. I use Beartype to get runtime type checks, but it shouldn’t be necessary. Some support for type checking, whether at byte compile time or runtime, should land upstream.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities