An "is_string" BIF?

Dominic Williams erlang-list@REDACTED
Fri Mar 11 23:01:36 CET 2005


Thomas Johnsson XA (LN/EAB) wrote:

> This really exposes an ugly wart on the language, in that 
> one cannot use any expression in a guard, ...

I like guards the way they are.

> ... 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) ->
   ....

Regards,

Dominic Williams
http://www.dominicwilliams.net
----



More information about the erlang-questions mailing list