Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
progressbwc
· 5y ago · 0 comments
It is a pity the type hinting is done in a separate file though, as it leads to a lot of duplication. In this case, I pretty much prefer Python’s approach.
Comments
[–]
Lio
5y ago
You can still use the inline type hinting from Sorbet. Sorbet is compatible with RBS and you'll probably want to check types via Sorbet anyway.
[–]
nerdponx
5y ago
FWIW Python does
also
support type hinting in separate files, although the use case is mostly in adding annotations to existing code bases.