[erlang-questions] erlang improvement - objective c (or smalltalk) syntax

Alin Popa <>
Thu Jun 4 14:04:43 CEST 2009


Hi Vlad,

Please correct me if I'm wrong, but
string:substring(String)from(Start)length(Length) does not look more like an
actual multiple function calls (  substring(String) - one function call,
from(Start) - other one, and so on ... ) ?
I don't know that this solution may keep backward-compatibility with the old
syntax.

Or maybe I'm missing something here.

Thanks.

-- 
Regards,

Alin



On Thu, Jun 4, 2009 at 2:31 PM, Vlad Dumitrescu <> wrote:

> On Thu, Jun 4, 2009 at 11:10, Joe Armstrong <> wrote:
> > Imagine a function like string:substring/3. A call to this looks like:
> >
> >        string:substring(Str, I, J)
>
> > Solution: write the call like this.
> >
> >       string:substring( string:S start:I length:J)
>
> Hi Joe,
>
> Didn't you (or was it someone else? I can't find that message in the
> archives) suggest for some time ago a different but similar way to
> represent function calls, something like
>      string:substring(String)from(Start)length(Length)
> ?
>
> regards,
> Vlad
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>


More information about the erlang-questions mailing list