[erlang-questions] Reassigning variables

Tony Arcieri tony@REDACTED
Tue Mar 17 22:48:21 CET 2009


On Tue, Mar 17, 2009 at 3:42 PM, Vance Shipley <vances@REDACTED> wrote:

>        try begin
>                case requested_ad_size(Size) of
>                        bad ->
>                                throw(bad_size);
>                        _ ->
>                                ok
>                end,
>                case has_ads() of
>                        true ->
>                                throw(disabled);
>                        false ->
>                                ok
>                end,
>                case is_filtering() of
>                        true ->
>                                throw(domain_filtered);
>                        false ->
>                                ok
>                end
>        end of
>                ok ->
>                        yahoo
>        catch
>                Problem ->
>                        Problem
>        end
>

Very cool.  Thanks for this suggestion.

-- 
Tony Arcieri
medioh.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090317/8e6397b4/attachment.htm>


More information about the erlang-questions mailing list