News for hackers. Stuff that matters.
Re:Stripe is building a Ruby typechecker by unfunco on Sunday June 03, 2018 @08:04PM (#17223321)
The second version would be difficult, maybe impossible currently due to keyword arguments, since:

    def foo(foobar:Integer)
    end
is already valid, and I think the lexer might struggle with the ambiguity; but I'm not 100% certain.

Edit: I seemingly missed the last line of your comment where you state something similar.

Re:Stripe is building a Ruby typechecker by tsycho on Monday June 04, 2018 @02:54AM (#17225231)
If foo:SomeType is problematic, let’s just use foo::SomeType instead. I agree with the parent that inline types are much nicer and more intuitive than he sig based approach.