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

Pages: 1-

referential transparency

Name: Anonymous 2009-02-04 13:50

Is is actually useful somehow in a programming language?

Name: Anonymous 2009-02-04 13:56

Yes. For example, Haskell's STM monad disallows performing IO within a transaction, meaning it can be safely retried without the risk of IO being performed again. (Except, of course, for unsafePerformIO, but at least it's then obvious that it's doing naughty things.)

Name: Anonymous 2009-02-04 14:18

Well, laziness is very useful. And the easiest way to have an lazy language without side-effects fucking you up the ass is making that language referentially transparent.

Name: Anonymous 2009-02-04 19:11

But is it useful to the programmer, aside from being a way to do optimizations?

Name: Anonymous 2009-02-04 19:14

>>2
+1, Informative

Name: Anonymous 2009-02-04 19:28

The property is useful writing readable code and building a mental model, doesn't hurt to have a formal way to annotate it and reap the compiler benefits.

Name: Anonymous 2009-02-05 4:23

>>5
-1, back to Slashdot, please

Name: Anonymous 2009-02-05 4:31

>>7
your just butthurt cuz they have longer neckbeards

Name: Anonymous 2009-02-05 8:28

My just butthurt cuz they have longer neckbeards what?

Name: Anonymous 2009-02-05 8:42

>>9
"your" is short for "you are", lrn2english.

Name: Anonymous 2009-02-05 9:15

>>10
EXPERT ENGLISH USER

Name: Anonymous 2009-02-05 9:17

my cpu has more butthurtz then ure!!

Name: Anonymous 2009-02-05 9:23

OP here.
Thanks, >>2, >>3, >>6

Name: ​​​​​​​​​​ 2010-10-25 8:51


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