Login
Roast topics
Find topics
Find it!
From:
blog.jez.io
(Uncensored)
subscribe
Generic methods cannot have non-generic defaults in Sorbet – Jake Zimmerman
https://blog.jez.io/generic-method-default/
links
backlinks
Tagged with:
ruby
types
sorbet
Roast topics
Find topics
Roast it!
Sorbet does not allow generic methods to have non-generic default arguments. The best alternative is to split the method into two methods, with one implemented by calling the other with the default value.