[m-dev.] Here's an idea.

Tyson Richard DOWD trd at cs.mu.oz.au
Fri Sep 5 15:51:18 AEST 1997


Andrew Bromage wrote:
> G'day all.
> 
> You (Tyson Richard DOWD) wrote:
> 
> > It's not too bad, but it's still a bit yuck.
> > Another solution (that is also a little yuck) is to overload ,/2, so you
> > can do:
> >   	sprintf("%d %d %f %s\n", (3, 4, 2.5, "foo", []), Str) 
> 
> One thing that we haven't used yet is {}/1.  Not sure how that would
> help here, though.

It doesn't. It still uses ,/2 as an operator. Would be useful in
situations where you'd like to apply a function to the list as a whole
at the end, but here that's not what we want.

-- 
       Tyson Dowd           #          Another great idea from the 
                            #            people who brought you
      trd at .cs.mu.oz.au      #               Beer Milkshakes!
http://www.cs.mu.oz.au/~trd #	         Confidence --- Red Dwarf



More information about the developers mailing list