News for hackers. Stuff that matters.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by derefr on Thursday June 20, 2019 @05:40PM (#20237678)
> What is the static type of x?

an anonymous (Integer | Bool | String) sum-type, of course.

Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby by edflsafoiewq on Friday June 21, 2019 @01:08AM (#20240012)
Not a sum type, since if all the components were strings you'd have (String | String | String) = String. The sum type would be 3 × String instead.