[Haskell-cafe] map (-2) [1..5]
dmhouse at gmail.com
Thu Aug 17 16:17:39 EDT 2006
On 17/08/06, Brian Hulley <brianh at metamilk.com> wrote:
> Literal highlighting in the editor would make it clear that x-2 === x (-2).
> I think a basic issue is that at the moment it is strange that non-negative
> numbers can be specified as literals but negative numbers can't - they can
> only get in through the "back door" of evaluation - which just doesn't seem
You also can't specify string literals: they're sugar for
'a':'b':'c':. You seem to be arguing that syntactic sugar, and by
extension, a small core language, is bad.
-David House, dmhouse at gmail.com
More information about the Haskell-Cafe