News for hackers. Stuff that matters.
Re:Swift vs. Go by glhaynes on Friday April 01, 2016 @04:45PM (#11408467)
Swift's is true strong [Edit: I should have said "static"] typing. The compiler enforces it but saves you from having to explicitly specify it in unambiguous cases. So:

  let x: Int = 3
  let y: Int = x
and

  let x = 3
  let y = x
are identical; in both cases, x and y are both strongly-typed as Int.
Re:Swift vs. Go by halosghost on Friday April 01, 2016 @04:47PM (#11408485)
You are confusing static typing and strong typing.

I understand that both Go and Swift are statically typed. My comment is about saying that Go and Swift have type systems which are really strong, but such an assertion means nothing unless you give a point of reference (i.e., “strong compared to X”)

To clarify, type inference and strength (or strictness actually) of typing are completely unrelated. For example, Haskell, which is statically typed (and far stronger than most other languages out there—though certainly not the strongest) has incredibly good type-inference, so you rarely need to specify types.