Wanted: warning option for usages of unary minus

Isaac Dupree isaacdupree at charter.net
Fri May 18 05:43:29 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Taral wrote:
> On 5/17/07, Joseph H. Fasel <jhf at lanl.gov> wrote:
>> *Sigh*  The problems with unary minus were discussed in the dim mists of
>> time before we published the first Haskell report.  We considered then
>> using a separate symbol for unary negation (as does APL, for example),
>> but (IIRC) this was regarded as unfriendly to Fortran programmers.
> 
> [breaking cc list]
> 
> Would this kind of thing be eligible for Haskell'? I never had a
> problem with _1 in APL-type languages... and I think it's best to be
> very clear about intent.
> 

Haskell' is "supposed to" be a conservative standard describing
mostly-already-implemented features. (of course that is why to implement
features like this efficiently if there is a good reason for them)

underscore seems like a bad candidate in haskell because:
_1 is presently a lowercase haskell identifier
some people want mid-number underscores 1_048_576
...

Isaac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGTXVBHgcxvIWYTTURAv+HAJ4mCqpXLLUEHaYeHrw8l6lx3eBr4QCgnTNl
+g5Rllpuk/8s6p+1hTxi4Ew=
=IvPt
-----END PGP SIGNATURE-----


More information about the Haskell-prime mailing list