Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Scheme Multiple Return Values

Name: Anonymous 2015-02-09 22:17

What are your thoughts on values, call-with-values and let-values (and its variants)?

What is your preferred method for returning multiple values? As pairs/lists or using values/let-values?

Some of the SRFIs use values/let-values, whereas other 3rd party libraries use pairs/lists.

Name: Anonymous 2015-02-10 0:37

why the fuck should i use values when the point of lithp is using fucking lists everywhere

Name: Anonymous 2015-02-10 3:25

>>2
Convenience. A caller that isn't aware of the multiple return values will only see the first value, which is useful when it's the only useful value in most cases. Callers that need the other values use the special syntax to bind variables to them.

Name: Anonymous 2015-02-10 4:08

the concept behind all of scheme is continuations.

A computation does something and puts the result into its continuation.

Letting continuations take multiple arguments is the justification for multiple return values.

It makes perfect sense is the conceptual model of scheme, and it can be implemented efficiently so I think it's a really good thing

Name: rms 2015-02-10 4:41

I'm a tree you'll be free write in C C

join me hackers share some software

come be free hackers

come with me

come be free and hack with me

join us hackers and read the sci-fi

listen to shit bulgarian music

stop the National Sex Agency

Name: rms 2015-02-10 4:42

free that snowden cunt

post on /g/

and be generally unappealing to men and women alike

Name: Anonymous 2015-02-10 6:39

>>5,6
dude, chill out

Name: Anonymous 2015-02-10 21:04

the fuck is 5,6>

Don't change these.
Name: Email:
Entire Thread Thread List