I am reading through Realm of Racket and saw this function in the conditions chapter:
(if (= (+ 1 2) 3) 'yup 'nope) So this function returns a symbol. Will be 'yup in above case. But 'yup confuses me. I don't really understand why you would want to return 'yup. For example, I could re-write the function like this: (if (= (+ 1 2) 3) "yup" "nope") which now returns a string. This is more understandable, it is simpler. Why would you want to write a function like the first one which returns 'yup? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.