Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How I stopped worrying and learned to love the bangs (was Re: Looking
Abdulaziz Ghuloum wrote:
> Here is another rpn (also with no error handling, interactivity, ...).
> It also assumes that all operators are binary.
> Also, this rpn has no side effects.

Yours is pure functional, but mine doesn't have any external
side-effects (does that phrasing make sense?). I *used* bangs internally
for brevity, but my rpn still just take stuff in, and put stuff out. I'd
still use it in an otherwise pure functional program. I toyed with
something that looked like your program for a while before things
settled down, and my factorings were made.

I actually found the pure functional version harder to debug/grok as I
was writing it; it juggles a lot more state around, explicitly, and it's
longer.

An interesting property of your program is that it's iterative, mine is
recursive. (And the fact that it had to be *reverse* polish notation
complicated my program (remove the reverse line and switch b and c, and
call it pn), while yours work with it.)

I guess you always think the version you write yourself looks the
clearest...

Report this thread to moderator Post Follow-up to this message
Old Post
Sunnan
04-21-05 09:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Scheme archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:21 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.