An "is_string" BIF?

Kostis Sagonas kostis@REDACTED
Fri Mar 11 23:53:45 CET 2005


Dominic Williams wrote:
 > I like guards the way they are.

It is good to know you are a hard-core Erlang afficionado, but if
the semantics of guards were as simple as the translation you describe
below, there would not be a need to have guards in the first place.

 > > ... making it impossible to use abstractions there, e.g.
 > > 
 > > glorbgraph(Graph) when mygraph:curiousproperty(Graph) -> ...
 > 
 > glorbgraph(Graph) ->
 >    glorbgraph(Graph, mygraph:curiousproperty(Graph)).
 > 
 > glorbgraph(Graph,true) ->
 >    ...;
 > glorbgraph(Graph,false) ->
 >    ....

Best,
Kostis




More information about the erlang-questions mailing list