[erlang-questions] Erlang basic doubts about String, message passing and context switching overhead

Rickard Andersson <>
Sun Jan 15 10:36:28 CET 2017


No one is talking about doing `"Here's a string".upcase()`, though. You 
seem to be under the impression that Elixir uses methods and objects or 
the like to accomplish reasonable string operations. It uses a String 
module that has functions. It's not different from Erlang, it just 
actually implements things that people want.

// gonz


On 14-Jan-17 22:12, Garrett Smith wrote:
> On Sat, Jan 14, 2017 at 11:08 AM, John Doe <> wrote:
>>> string:to_upper("hello").
>> This function works for ASCII only. That's the problem. MICHAł =
>> string:to_upper("Michał").
> Neither does the string module work on binaries, which I've found
> inconvenient. Fortunately you can just use an alternative
> function/module.
>
> Sometimes I have to write my own function, which is also inconvenient.
>
> Modifying built-in type behavior (the vaunted Ruby string, but also
> Python, etc.) is super extremely inconvenient.
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list