<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 15, 2019 at 8:02 PM Karlo Kuna <<a href="mailto:kuna.prime@gmail.com">kuna.prime@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Michal, <div>i really prefer crashing than garbage in, garbage out policy.  </div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>also it would be nice if someone from OTP team confirms if stdlib has "garbage in garbage out" policy. i can certainly see benefits of it but in this case fix is easy and small.  </div></div></blockquote><div><br></div><div>It is impossible to guard against every possible faulty input, so yes, we do have "a garbage in, garbage out policy". However, we do try to guide the user to write correct code where possible without losing too much performance. Where to draw the line of what "too much performance" means is a constant debate as shown by the other answers to your question.</div><div><br></div><div>Lukas</div></div></div>