<p>Also, you can typespec everything rigorously and dialyze, not dbc per se, but gives you great confidence that it fits together nicely. </p>
<div class="gmail_quote">On Jan 12, 2012 4:17 PM, "Zabrane Mickael" <<a href="mailto:zabrane3@gmail.com">zabrane3@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Thanks Tim.<div><br></div><div>I'll give <b>"annotations"</b> a try.</div><div><br></div><div>Regards,</div><div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
Zabrane</div><div><br></div></span></div><div><br></div><div><div>On Jan 12, 2012, at 3:13 PM, Tim Watson wrote:</div><br><blockquote type="cite">And if you need to differentiate between pre/post more clearly in your annotation, you can do it like this too:<div>
<br></div><div><a href="https://github.com/hyperthunk/annotations/blob/master/examples/simple/src/logging.erl" target="_blank">https://github.com/hyperthunk/annotations/blob/master/examples/simple/src/logging.erl</a><br>
<br><div class="gmail_quote">On 12 January 2012 14:11, Tim Watson <span dir="ltr"><<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:arial;word-spacing:0px">You could easily write your own using <a href="https://github.com/hyperthunk/annotations" target="_blank">https://github.com/hyperthunk/annotations</a></span><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:arial;word-spacing:0px">


<br></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:arial;word-spacing:0px">


For some usage examples:</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:arial;word-spacing:0px">


<br></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:arial;word-spacing:0px">


<a href="https://github.com/hyperthunk/rebar_annotations/blob/master/src/base_dir.erl" target="_blank">https://github.com/hyperthunk/rebar_annotations/blob/master/src/base_dir.erl</a></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:arial;word-spacing:0px">


<a href="https://github.com/nebularis/memoize/blob/master/src/memoize.erl" target="_blank">https://github.com/nebularis/memoize/blob/master/src/memoize.erl</a></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:arial;word-spacing:0px">


<br>It would be easy to write the pre/post conditions as annotations and glue them in to the build using this.</div><div><div><br><div class="gmail_quote">On 12 January 2012 02:12, Zabrane Mickael <span dir="ltr"><<a href="mailto:zabrane3@gmail.com" target="_blank">zabrane3@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Steve. But UBF is for protocol validation between Erlang and foreign languages.<br>
<br>
But to simply check pre-conditions, post-conditions aroudn functions ... may be something simple exists!!!<br>
<br>
Regards,<br>
Zabrane<br>
<div><div><br>
On Jan 12, 2012, at 1:39 AM, Steve Davis wrote:<br>
<br>
> If you've not seen it already, Joe Armstrong's UBF is worth studying:<br>
><br>
> <a href="http://www.sics.se/~joe/ubf/site/home.html" target="_blank">http://www.sics.se/~joe/ubf/site/home.html</a><br>
><br>
><br>
> On Jan 11, 3:19 pm, Zabrane Mickael <<a href="mailto:zabra...@gmail.com" target="_blank">zabra...@gmail.com</a>> wrote:<br>
>> Hi guys,<br>
>><br>
>> Any Erlang library to simply DbC (à la Eiffel)?<br>
>><br>
>> Regards,<br>
>> Zabrane<br>
>><br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> erlang-questi...@erlang.orghttp://<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">erlang.org/mailman/listinfo/erlang-questions</a><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>
</blockquote></div><br></div></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" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div>