<div dir="ltr">So it's me who needs to read more carefully - touche!<div><br></div><div>Your syntax error is in terminating two clauses with commas - commas separate expressions. Delete them.</div><div><br></div><div>Out of curiosity, what's wrong with the bad match error? Who's saying you need to map that to some string?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 8, 2015 at 1:27 PM, Roelof Wobben <span dir="ltr"><<a href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Op 8-8-2015 om 20:24 schreef Garrett
      Smith:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">This is actually Joe's way:</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Sat, Aug 8, 2015 at 1:19 PM,
            Roelof Wobben <span dir="ltr"><<a href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">char_to_shape(Char)
                -><br>
                      case Char of<br>
                          $R -> get_dimension(rectangle);<br>
                          $T -> triangle;<br>
                          $E -> ellipse;<br>
                          $r -> rectangle;<br>
                          $t -> triangle;<br>
                          $e -> ellipse<br>
                    end.</blockquote>
            </blockquote>
          </div>
          <br>
          I think your immediate problem is just reading a bit more
          carefully. Oh, and try not to use the list as a compiler :)</div>
      </div>
    </blockquote>
    <br></div></div>
    That was Joe first way.<br>
    <br>
    Later he explained thet try catch because the exercise needs to give
    error messages.<br>
    <br>
    Roelof<br>
    <br>
  
<br><br>
<hr style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table style="border-collapse:collapse;border:none">
        <tbody><tr>
                <td style="border:none;padding:0px 15px 0px 8px">
                        <a href="https://www.avast.com/antivirus" target="_blank">
                                <img border="0" src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo">
                        </a>
                </td>
                <td>
                        <p style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt"><span class="">
                                Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
                                <br></span><a href="https://www.avast.com/antivirus" target="_blank">www.avast.com</a>
                        </p>
                </td>
        </tr>
</tbody></table>
<br>
</div>

<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>