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

Re: swiss army knife
Anton van Straaten <anton@appsolutions.com> writes:

> Joe Marshall wrote: 
>
> Here lies the ultimate solution: Scheme code should be authored in a
> specially-designed SGML dialect.  We can use HTML to prototype this to
> get a feel for the many advantages of the approach, e.g.:
>
> (define <i>IncBeta</i> (λ (β) (+ β 1)))
> (<i>IncBeta</i> 41) ;=> 42
>
> As an additional benefit, this syntax may be more attractive to
> e.g. Perl programmers.  It's hard to see a downside here!

It still has those damnable smooth parenthesis.  I suggest replacing
the ones that do not surround function calls with curly braces:

{define <i>IncBeta</i> {λ {β} (+ β 1)}}
(<i>IncBeta</i> 41) ;=> 42

and possibly moving the function position to just before the parens
and adding a sprinkling of gratuitous other punctuation.

{define <i>IncBeta</i> {λ {β} + (β, 1);}}
<i>IncBeta</i> (41) ;=> 42

There we go.  Isn't that *much* more readable?  I bet it runs a lot
faster, now, too.

Report this thread to moderator Post Follow-up to this message
Old Post
Joe Marshall
05-04-05 09:00 PM


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 09:44 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.