[Purdue-pm] perl6 rpn calculator
Michael Gribskov
gribskov at purdue.edu
Wed Mar 4 05:40:51 PST 2009
A good example of why shorter isn't the same as better. the original
version, while still somewhat cryptic, at least makes it explicit that
the operation work on the stack, and where the operands are obtained.
IMO the original is much better (more maintainable)
Joe Kline wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> That's some dense code.
>
> http://use.perl.org/~pmichaud/journal/38580
>
> joe
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org
>
> iD8DBQFJrE5Qb0mzA2gRTpkRAh2kAJwKH7Tgm40iJVIv96hhJzbiR5Z5UQCbBzF+
> MO38AbkzR8imDjeRlzIkkEE=
> =RcZW
> -----END PGP SIGNATURE-----
> _______________________________________________
> Purdue-pm mailing list
> Purdue-pm at pm.org
> http://mail.pm.org/mailman/listinfo/purdue-pm
>
--
Michael Gribskov - gribskov at purdue.edu
Professor of Biological Sciences and Computer Science
Purdue University
Lilly Hall of Life Sciences
915 W. State Street
West Lafayette IN 47907-2054
voice: 765.494.6933 fax: 765.496-1189 email: gribskov at purdue.edu
Calendar: http://www.google.com/calendar/embed?src=gribskov%40purdue.edu&ctz=America/New_York
More information about the Purdue-pm
mailing list