cactoos-http
cactoos-http copied to clipboard
EO violation in Wire?
Into the Wire interface we have a method Input send(Input input) throws IOException, but it isn't a EO violation? In EO vol 1, Yegor says "verb methods should return nothing (void)" and send() is a verb. So, should we rename it? My suggestion: Input response(Input request) throws IOException.
@llorllale/z please, pay attention to this issue
@fabriciofx fair enough, but neither solutions are correct according to Yegor's book.
@llorllale why not?
@llorllale WDYT:
interface Request extends Input {
}
interface Response extends Input {
}
Response response(Request req) throws Exception