Programming-Idioms

History of Idiom 3 > diff from v28 to v29

Edit summary for version 29 :
[Scheme] begin is redundant here

Version 28

Version 29

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Code
(define (finish name)
    (begin
        (display "My job here is done. Goodbye ")
        (display name)
        (newline)))
Code
(define (finish name)
    (display "My job here is done. Goodbye ")
    (display name)
    (newline))
Comments bubble
This is a short syntax for a lambda definition.
Comments bubble
This is a short syntax for a lambda definition.
Demo URL
http://repl.it/SII
Demo URL
http://repl.it/SII