|
|
|
|
|
by sickcodebruh
2094 days ago
|
|
Didn’t see it linked in the preview announcement, here’s the RBS syntax guide: https://github.com/ruby/rbs/blob/master/docs/syntax.md Glanced at it from my phone but it looks good! I’m looking forward to seeing it in RubyMine. Still sad that we can’t write these in .rb files but I wonder if the plan is to go the other way, eventually permit typed code in .rbs? Does anyone know what the story will be with third-party definitions? Are we headed towards a DefinitelyTyped style repository for Ruby? |
|
The other good thing about RBS being in separate files is it can be integrated into a library without breaking compatibility with older Ruby versions.