<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Tim.<div><br></div><div>I'll give <b>"annotations"</b> a try.</div><div><br></div><div>Regards,</div><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Zabrane</div><div><br></div></span></div><div><br class="webkit-block-placeholder"></div><div><div>On Jan 12, 2012, at 3:13 PM, Tim Watson wrote:</div><br class="Apple-interchange-newline"><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">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">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 class="HOEnZb"><div class="h5"><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></body></html>