Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Interactive Ruby (IRB) (2023) (alchemists.io)
3 points by mooreds on March 27, 2024 | hide | past | favorite | 1 comment


I think one of the most interesting things to happen to IRB is the recent introduction of static type completion[1].

The fact that this is a nice, mainstream, usage of RBS types in the standard library gives me hope that RBS or some kind of inline[2] version of it will become much more common in future.

1. https://github.com/ruby/irb?tab=readme-ov-file#type-based-co...

2. The new Prism parser makes it much easier to extract an execute comments so I would be surprised if no one has thought of using that to annotate code with RBS types.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: