[erlang-questions] Beginner: What's wrong with this code?

Sid Carter sidcarter@REDACTED
Thu Jun 23 07:07:29 CEST 2011


On Thursday, 23 June 2011 at 4:12 PM, Banibrata Dutta wrote:

> On Thu, Jun 23, 2011 at 4:55 AM, Sid Carter <sidcarter@REDACTED (mailto:sidcarter@REDACTED)> wrote:
> > On 23 June 2011 00:32, Kostis Sagonas <kostis@REDACTED (mailto:kostis@REDACTED)> wrote:
> > >
> > > Others have already explained the problem and suggested a fix for it. But
> > > these kinds of errors (forgetting one set of list brackets) are very common.
> > > They can easily be avoided if one writes in more modern Erlang rather than
> > > in Erlang of 10 years ago. In this particular case, you can use a spawn with
> > > a fun that makes the call to function format_temps/1 clear:
> > 
> > And while searching, I found this ->
> > http://www.erlang-factory.com/upload/presentations/347/Kostis.pdf
> > 
> >  I suppose that's a good start on modern Erlang. Are there more? :)
> > 
> Great find. Also, wondering if there is a more generic 'Style Guide' (a.la (http://a.la) the PEP for Coding conventions, forgot the number).
Or like the node.js style guide -> http://nodeguide.com/style.html , considering I came from node.js to Erlang :) 
> BTW, the modern erlang code (slide#23), looks bit more "intimidating and crowded" compared to the extremely simple look that old Erlang code has.
I agree. That's exactly what I thought once I saw that slide. 
>  One of the merits of Erlang code, cited in some language comparisons was based on the LoC comparison, somehow the modern Erlang code seems to add a lot of volume. Although some refactoring done by TidiEr do seem to reduce LoC as well. Anyhow, I'm certainly bookmarking and exploring all suggestions in that presentation.
 Sid 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110623/86bb4215/attachment.htm>


More information about the erlang-questions mailing list