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

Bengt Kleberg bengt.kleberg@REDACTED
Thu Jun 4 13:38:13 CEST 2009


That was suggested by Richard A. O'Keefe.


bengt

On Thu, 2009-06-04 at 13:31 +0200, Vlad Dumitrescu wrote:
> 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
> 
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
> 



More information about the erlang-questions mailing list