You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! First of all I loved the idea so far, thanks for making it open source! I also thought of something like this but I never actually implemented it. Sorbet is a little bit heavy lift and RBS is too far from runtime to me, but this is a simple implementation. I even think it may be eventually be able to export to RBS for IDE support (an entirely different conversation, but wanted to mention it)
While trying it out i found out it does not have support for class methods. Here's an example on how to reproduce
require'delivered'classUserextendDelivered::SignaturesigString,age: Integer,returns: Stringdefinitialize(name,age:)"User #{name} created with age #{age}"endsigString,returns: Stringdefself.example(user)123endendUser.example(1)# should throw error because of the integer as parameter, and also because of the integer as returned value
I may be able to submit a PR for this in the short term, but wanted to submit the issue first, in case you or someone else wants to do it before
The text was updated successfully, but these errors were encountered:
Hi! First of all I loved the idea so far, thanks for making it open source! I also thought of something like this but I never actually implemented it. Sorbet is a little bit heavy lift and RBS is too far from runtime to me, but this is a simple implementation. I even think it may be eventually be able to export to RBS for IDE support (an entirely different conversation, but wanted to mention it)
While trying it out i found out it does not have support for class methods. Here's an example on how to reproduce
I may be able to submit a PR for this in the short term, but wanted to submit the issue first, in case you or someone else wants to do it before
The text was updated successfully, but these errors were encountered: