News for hackers. Stuff that matters.
Re:Types will be part of Ruby 3 stdlib source by lizmat on Friday April 19, 2019 @11:05AM (#19700176)
Type checking is runtime, although if the static optimizer can figure out that a certain call will never work at compile time, it will throw a compile time error.
Re:Types will be part of Ruby 3 stdlib source by joesb on Monday April 22, 2019 @04:43AM (#19717427)
On the other hand, if the static optimizer can figure out that a certain call will always work at compile time, it can remove the runtime check for that part.