[Haskell-cafe] some ideas for Haskell', from Python

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Jan 14 18:59:31 EST 2009

On 2009 Jan 14, at 10:26, Neil Mitchell wrote:
>>>>  As an example:
>>>>      foo = u"abc\N{VULGAR FRACTION ONE HALF}"
>>> Hmm, looks nice, and sensible. But as soon as you've got \N{....}  
>>> syntax I want:
>>> "foo\E{show i}bar"
>>> i.e. embed expressions in strings. I think this would be fantastic.
>> why not simpy "foo\E{i}bar" ?
> What if i is a string? You'd get: foo"i"bar
> Having different behaviour for string vs everything else would be  
> equally bad.

...except that show already *has* different behavior for String vs.  
everything else.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list