'Going bang' is an option on any one of the 39,207 items. The appropriate 
response is for the code that runs the closure that operates on the data to 
catch this exception and transport it to the calling frame in a way that 
does not imply killing the result of the other 39,206 operations. While 
you're catching exceptions anyway, also catch the NPE and everything is 
fine. Why does null get special 'ignore it' vs. 'throw an exception' 
behaviour?

If I _WANT_ nulls to be 'ignored', then I should be explicit about it, with 
i.e. an elvis operator or whatnot.

On Tuesday, June 5, 2012 6:42:57 PM UTC+2, KWright wrote:
>
> Just call .get on the thing, it'll go bang fast enough :)
>
> Often though, that simply isn't what you want.  If I'm running some form 
> of 5 hour long big data / batch processing task and it goes bang on item 
> 38,976 / 39,207 then I am *NOT* going to be happy.
>
> "Going bang" really isn't your friend if processing large data sets. 
>  Especially if you're processing them in parallel, even more especially if 
> the processing involves side effects - at which point you've made your 
> behaviour non-deterministic.
>
>
>
> On 5 June 2012 17:25, Cédric Beust ♔ <[email protected]> wrote:
>
>>
>> On Tue, Jun 5, 2012 at 9:18 AM, Ricky Clarkson <[email protected]>
>>  wrote:
>>
>> Option gives you the same choices
>>
>>
>> How do I get Option to blow up if I try to map on a None?
>>
>> -- 
>> Cédric
>>
>>
>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Java Posse" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/javaposse?hl=en.
>>
>
>
>
> -- 
> Kevin Wright
> mail: [email protected]
> gtalk / msn : [email protected]
> quora: http://www.quora.com/Kevin-Wright
> google+: http://gplus.to/thecoda
> <[email protected]>
> twitter: @thecoda
> vibe / skype: kev.lee.wright
> steam: kev_lee_wright
>
> "My point today is that, if we wish to count lines of code, we should not 
> regard them as "lines produced" but as "lines spent": the current 
> conventional wisdom is so foolish as to book that count on the wrong side 
> of the ledger" ~ Dijkstra
>
>  
On Tuesday, June 5, 2012 6:42:57 PM UTC+2, KWright wrote:
>
> Just call .get on the thing, it'll go bang fast enough :)
>
> Often though, that simply isn't what you want.  If I'm running some form 
> of 5 hour long big data / batch processing task and it goes bang on item 
> 38,976 / 39,207 then I am *NOT* going to be happy.
>
> "Going bang" really isn't your friend if processing large data sets. 
>  Especially if you're processing them in parallel, even more especially if 
> the processing involves side effects - at which point you've made your 
> behaviour non-deterministic.
>
>
>
> On 5 June 2012 17:25, Cédric Beust ♔ <[email protected]> wrote:
>
>>
>> On Tue, Jun 5, 2012 at 9:18 AM, Ricky Clarkson <[email protected]>
>>  wrote:
>>
>> Option gives you the same choices
>>
>>
>> How do I get Option to blow up if I try to map on a None?
>>
>> -- 
>> Cédric
>>
>>
>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Java Posse" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/javaposse?hl=en.
>>
>
>
>
> -- 
> Kevin Wright
> mail: [email protected]
> gtalk / msn : [email protected]
> quora: http://www.quora.com/Kevin-Wright
> google+: http://gplus.to/thecoda
> <[email protected]>
> twitter: @thecoda
> vibe / skype: kev.lee.wright
> steam: kev_lee_wright
>
> "My point today is that, if we wish to count lines of code, we should not 
> regard them as "lines produced" but as "lines spent": the current 
> conventional wisdom is so foolish as to book that count on the wrong side 
> of the ledger" ~ Dijkstra
>
> 

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/javaposse/-/ByHwdqx84AAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to