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

Vlad Dumitrescu vladdu55@REDACTED
Thu Jun 4 13:31:55 CEST 2009


On Thu, Jun 4, 2009 at 11:10, Joe Armstrong <erlang@REDACTED> 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


More information about the erlang-questions mailing list