Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
resonious
on Nov 21, 2020
|
parent
|
context
|
favorite
| on:
Static Typing for Ruby: Adopting Sorbet at Scale
I imagine they could (in theory) simplify it to
sig(name: String, id: String).returns Integer
Losing the block maybe has some undesirable performance implications, but it looks a little nicer without the curly braces.
rattray
on Nov 21, 2020
[–]
I think they did this originally but the performance implications were a deal breaker, and had to move to blocks. Iirc, which is questionable.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: