[erlang-questions] Erlang Syntax and "Patterns" (Again)

Steve Davis steven.charles.davis@REDACTED
Thu Mar 17 11:53:17 CET 2016


> ROK said:
> Yawn.
(What am I doing trying to argue with ROK??? Am I MAD?)

1) Why is it people rant about "string handling" in Erlang?

2) Principle of least surprise:
1> [H|T] = [22,87,65,84,33].
[22,87,65,84,33]
2> H.
22
3> T.
"WAT!”

3) A codec should be perfectly reversible i.e. X = encode(decode(X)). Without tagging, merely parsing out a string as a list is not perfectly reversible.

4) What is the right way to implement the function is_string(List) correctly?

*ducks*
/s

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160317/8d7c744e/attachment.htm>


More information about the erlang-questions mailing list