News for hackers. Stuff that matters.
Re:Why Swift's type checker is so slow by Hamuko on Saturday June 22, 2024 @08:08AM (#40758481)

  let x: Double = 2
  let y = 5 / x
y is a Double with a value of 2.5.

  let x: Int = 2
  let y = 5 / x
y is an Int with a value of 2.

  let x: Int = 2
  let y: Double = 5 / x
Code doesn't compile.

There are no comments on this comment yet.