[erlang-questions] Guards on assignment (i.e. assertions)
    Garrett Smith 
    g@REDACTED
       
    Mon Mar  1 21:13:27 CET 2010
    
    
  
There's no value -- the assignment fails.
It's syntactic sugar for a case statement with the same guard.
On Mon, Mar 1, 2010 at 2:05 PM, Vlad Dumitrescu <vladdu55@REDACTED> wrote:
> On Mon, Mar 1, 2010 at 21:00, Garrett Smith <g@REDACTED> wrote:
>>  A = B when B > C
>
> Hi!
>
> What value should A be matched to if B =< C?
>
> regards,
> Vlad
>
    
    
More information about the erlang-questions
mailing list