3 ms·
> For myself, I'm fine with the typing being in a separate .rbs file We type[0] by having one separate .rbs file per .rb file. Works really well with an editor
by lloeki 3y ago
> For myself, I'm fine with the typing being in a separate .rbs file
We type[0] by having one separate .rbs file per .rb file. Works really well with an editor's vertical splits: type outline on one side, code on the other. That, or use something like vim-projectionist[1].
We have a static typing guide for contributors[2], and I'm also accreting common errors and issues behind the scenes to produce a 'rbs+steep by example' to ease folks in.
[0]: (WIP: there's a huge codebase to type, but we're progressively getting there) https://github.com/DataDog/dd-trace-rb/tree/master/sig https://github.com/DataDog/dd-trace-rb/tree/master/sig
[1]: https://github.com/tpope/vim-projectionist https://github.com/tpope/vim-projectionist
[2]: https://github.com/DataDog/dd-trace-rb/blob/master/docs/StaticTypingGuide.md https://github.com/DataDog/dd-trace-rb/blob/master/docs/Stat...