Is erlang too small?
Einar Karttunen
ekarttun@REDACTED
Mon May 10 11:14:41 CEST 2004
On 10.05 09:03, Rudolph van Graan wrote:
> SMTP,
Yaws source has a functional SMTP client module...
For me the main problem is the flat module namespace - it is very
hard to find the correct module. This could be solved even without
any real changes by adding a "category" header to modules.
-module(foo).
-category([bar]).
Now just make all documentation generation tools look for it and
most of the problem is solved. As for various small usefull things
a standard way of creating hex presentations of strings/binaries
would be nice like:
hex(Bin) when binary(Bin) -> hex(binary_to_list(Bin));
hex([]) -> "";
hex([H|T]) ->
[A,B] = if
H == 0 -> "00";
H < 16 -> [$0,element(H,{$1,$2,$3,$4,$5,$6,$7,$8,$9,$A,$B,$C,$D,$E,$F})];
true -> erlang:integer_to_list(H,16)
end,
[A,B|hex(T)].
Yaws has something similar too.
Sha1 checksums would be nice.
- Einar Karttunen
More information about the erlang-questions
mailing list