|
|
|
|
|
by clanky
172 days ago
|
|
> With type annotation, it's becoming "ugly", a lot more verbose. It's no longer English-like. In our codebase that uses Sorbet I find this is really only true at function boundaries. Within a function it is pretty rare that anything needs to be spelled out with inline annotations to satisfy the compiler. |
|
If only private methods would be allowed not having typing at all (with a promise of not being used in subclasses, for example), and Sorbet would be used mostly on the public surface of classes, it'd be much more tolerable for me.