[erlang-questions] function prime

Raimo Niskanen raimo+erlang-questions@REDACTED
Wed Jan 24 09:04:15 CET 2007


Well, since single quote is used to quote atoms - it is incompatible.

OTOH backtick is unused, so:

func() -> ok;
'func`'() -> ok.

Remains to allow:

func`() -> ok.


But backtick should be used for something more important, I think...



On Tue, Jan 23, 2007 at 12:33:33PM -0600, Logan, Martin wrote:
> I was thinking, well this is the second time, that it would be nice to
> add the ability to name functions with a ' suffix (ala Haskell).  I
> can't think of a place where that would be ambiguous... I am sure I
> could be wrong though.  I have seeing 
> 
>  
> 
> func(A, B) -> ...
> 
>                         Func2(AA, BB)
> 
>  
> 
> fun2(A, B) ->
> 
>  
> 
> etc
> 
>  
> 
> funcN(A, B) ->
> 
>  
> 
> it would be much nicer to use 
> 
>  
> 
>  
> 
> func(A, B) ->
> 
>  
> 
> func'(A, B)
> 
>  
> 
> func''(A, B)
> 
>  
> 
>  
> 
> Function prime and function double prime is much nicer than function one
> and function two.  I think so at least - it makes me feel smart and I
> can pretend to be a real computer scientist.  
> 
>  
> 
> Cheers,
> 
> Martin
> 

> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions


-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list