3 ms·
i was just saying i personally found type declarations useful as the couple of small groovy codebases i worked on progressed over the short period (maybe a year
by arthur_pryor 9y ago
i was just saying i personally found type declarations useful as the couple of small groovy codebases i worked on progressed over the short period (maybe a year?) i worked on them. thinking about how i might declare types made me decompose things a bit differently, which made the logic simpler in some places, which allowed me to do things like get rid of tests where i checked the behavior in a case where a method was missing on a function parameter, because now i knew the parameter was over certain type (and thus would have that method).