This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: difficulty of writing translators



>  > The one thing that most gets to me when writing scheme code is that
>  > C allows you to return from a function from anywhere you like and scheme
>  > requires that you structure it with (cond) and such. I find commands
>  > like `break', `continue' and `return' incredibly useful (is this just
>  > me?)

Hmm.  I certainly use those in C, but I can't remember wanting them in
Scheme.  It's usually not too hard to arrange to be in tail position
when it's necessary.

> R4RS Scheme has call-with-current-continuation, which is much more flexible 
> than the jump instructions of imperative languages, at least is capable to
> emulate them.

Guile's call/cc is a lot more expensive than break/continue/return,
unfortunately.