3 ms·
On further thought I understood that streams usually are lazy and real exception would be thrown not at map, but later (probably in collect or similar method).
by vbezhenar 8y ago
On further thought I understood that streams usually are lazy and real exception would be thrown not at map, but later (probably in collect or similar method). So it would require to propagate that E generic parameter to almost every function (and Stream type signature). Also it won't work well with multiple checked exceptions. So yeah, not that easy.