[erlang-questions] Bug ?!

Richard Carlsson <>
Wed Oct 4 10:58:17 CEST 2006


Richard A. O'Keefe wrote:
> So we could imagine an
> enhanced pattern language including something like (this is off the
> cuff; NOT a polished suggestion):
> 
>     [*]		a list of any size (including 0 or 1)
>     {*}		a tuple of any size (including 0 or 1)
>     #r{*}	an instance of record type r
>     <<*>>	a binary of any size

I think some variant of ellipsis would look better, e.g.:

      [..]
      {..}
      <<..>>

(And even today, you only need to write #r{} to match any r-instance.)

	/Richard




More information about the erlang-questions mailing list