[erlang-questions] my best erlang "foot in mouth"

Richard O'Keefe <>
Wed Aug 10 05:11:00 CEST 2011

On 10/08/2011, at 2:16 AM, Vincenzo Maggio wrote:

> lists:seq(1:100).
> Erlang answers with "illegal expression" -> an afternoon of code review :(
> And I STILL continue to write this!!!

Here's a one-line AWK script you can use to check for this.

#!/bin/awk -f
/[^a-zA-Z0-9_][0-9]+ *:/ { print FILENAME ":" FNR ": integer-colon error" }

You can probably configure your editor to run this on a keystroke.

Of course 1:100 is perfectly legal S, so it's not _that_ silly a mistake.

More information about the erlang-questions mailing list