Matter of style and efficiency
Franck PORCHER
1 post
|
Hi, I’m just starting with Erlang, though very much accustomed to logic and functional programming. I feel this is a dream to invest for the future by going back to these most fecond programming styles. I first opened the “Erlang Book” today (there is the “Camel book” to the Perl community) and I would like to reflect on style and efficiency. I) Chapter 3 : The author gives a solution that reverses the initial order of the argument, which can be voided out by applying a I’m convinced that the author made this choice deliberately over existing solutions that preserve the order right from the start, like
And I wonder why ? Is the style of How do these two versions compare regarding the efficiency criterion ? II) Chapter 3 : The question here is more about style. I tend to consider the following version of Would this version be considered acceptable with respect to the “canons” of Erlang community ?
with
Thank you in advance for any thoughtful comments. Franck PORCHER |
Alain O'Dea
35 posts
|
Hi Frank, Thank you for this interesting post. It raises some very important questions and issues to keep in mind when writing Erlang code. In the book Your Your version of Your post raised some very important issues about Erlang coding. Thank you for posting :) |
2 posts, 2 voices
