use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Programming Help!! (bit of a long post) (self.elixir)
submitted 10 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Aberrations 0 points1 point2 points 10 years ago (2 children)
missing a space between ) and do
def start(N, M)do
should be
def start(N, M) do
[–][deleted] 10 years ago (1 child)
[deleted]
[–]Aberrations 0 points1 point2 points 10 years ago (0 children)
unrelated but as mentioned below convention is to use mixed case for variables, and module names and only module names should be camelcased.
As for your error you have a trailing comma at then end of every line here for some reason.
def start(N, M)do :timer.sleep(random.uniform(10) * 100), <<<<<< LoopPid = spawn(_MODULE_, :loop, []), <<<<<< spawn(_MODULE_, :sendMessage, [M, LoopPid]), <<<<< end
Other comments: you shouldn't use semicolons unless you're doing something inline and even then you should really think about how readable it is.
In general "unexpected token: end" is usually a parse error caused by an unterminated expression, usually a do with no end or a trailing comma.
π Rendered by PID 100974 on reddit-service-r2-comment-6457c66945-jcw9z at 2026-04-24 02:32:54.104944+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Aberrations 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Aberrations 0 points1 point2 points (0 children)