News for hackers. Stuff that matters.
Re:Gradual type checking for Ruby by riffraff on Thursday April 09, 2015 @02:42AM (#9346070)
there are respond_to? constraint, the first example is

    typesig :sum, [:to_i, Numeric] => Numeric
notice the :to_i

also, the global switch is simple:

    if $DEBUG
      require 'rubype'
    else
      def typesig(*args) end
    end
:)

There are no comments on this comment yet.