[Haskell-cafe] question regarding the $ apply operator
Maciej Marcin Piechotka
uzytkownik2 at gmail.com
Sat Jul 23 16:07:38 CEST 2011
On Sat, 2011-07-23 at 06:37 -0700, Ting Lei wrote:
> I know the Reverse Polish is not a couple of hundred years old.
> I have an impression of reading something about people writing natural
> deduction systems using only dots in place of parenthesis. And it is
> said that it was "natural" in those pre-historic times.
>
> That's also why I had this (mis-)conception that ($) can be used to achieve
> something similar. It would be marginally interesting, since it saves us
> one character in the mental stack. I still remember looking at the parentheses
> in a lisp program.
>
> Anyways, thanks for the clarifications.
Hmm. Maybe highlighting the parenthesis would help in more complicated
expressions. I.e. the matching parenthesis are coloured in the same
colour.
For example
(((()())()))
rgbyyccbppgr
r - red
g - green
b - blue
c - black
p - pink
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110723/d615424c/attachment.pgp>
More information about the Haskell-Cafe
mailing list