<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">If we only could get a public repository for Wrangler rules[1] we could have these checks actually integrated with proper Erlang tools<br><div><br></div><div>[1] See refactoring videos at <a href="http://www.cs.kent.ac.uk/projects/wrangler/Home.html">http://www.cs.kent.ac.uk/projects/wrangler/Home.html</a>  and DIY refactoring at <a href="http://www.erlang-factory.com/conference/London2011/speakers/SimonThompson">http://www.erlang-factory.com/conference/London2011/speakers/SimonThompson</a></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 10/08/2011, at 2:16 AM, Vincenzo Maggio wrote:<br><br><blockquote type="cite">lists:seq(1:100).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Erlang answers with "illegal expression" -> an afternoon of code review :(<br></blockquote><blockquote type="cite">And I STILL continue to write this!!!<br></blockquote><br>Here's a one-line AWK script you can use to check for this.<br><br>#!/bin/awk -f<br>/[^a-zA-Z0-9_][0-9]+ *:/ { print FILENAME ":" FNR ": integer-colon error" }<br><br>You can probably configure your editor to run this on a keystroke.<br><br>Of course 1:100 is perfectly legal S, so it's not _that_ silly a mistake.<br><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></div></blockquote></div><br><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-align: auto; 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; "><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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">===================================</span></font></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Dmitrii Dimandt<br><a href="mailto:dmitrii@dmitriid.com">dmitrii@dmitriid.com</a><br><br></span></font></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">------------------------------------------------------------<br>Erlang in Russian<br><a href="http://erlanger.ru/">http://erlanger.ru/</a></span></font><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">TurkeyTPS</span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><a href="http://turkeytps.com/">http://turkeytps.com/</a></span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">------------------------------------------------------------</span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">LinkedIn: <a href="http://www.linkedin.com/in/dmitriid">http://www.linkedin.com/in/dmitriid</a></span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">GitHub: <a href="https://github.com/dmitriid">https://github.com/dmitriid</a></span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div></span></div></span><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br class="Apple-interchange-newline"></span></font></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>