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

Pages: 1-

Declarative Vs Imperative Programming

Name: Anonymous 2010-12-17 21:33

Discuss

Name: Anonymous 2010-12-17 21:39

All posts on /prog/ are immutable. Guess what it means.

Name: Anonymous 2010-12-17 22:07

>>2
It means that, if OP wants to append something to his post, he has to create a copy of it?

Name: Anonymous 2010-12-17 22:19

>>3
*guffaw*

Name: Anonymous 2010-12-17 22:41

>>2
Except when a moderator decides to delete the post (rule-breaking content for example) or if the data somehow gets corrupted. This is PHP we're talking about.

Name: Anonymous 2010-12-17 23:21

>>5
When they delete some posts, they capture the current state of /prog/, modify and return it, without touching the original, then they use the Shiichan monad to display the new state of /prog/ to the world.

Name: Anonymous 2010-12-18 0:40

Fucking nomads how do they work?!

Name: Anonymous 2010-12-18 1:16

How can declarative programming not be imperative?

Name: Anonymous 2010-12-18 2:07

>>8
Terrible!

Name: Anonymous 2010-12-18 10:51

>>6
so how do they pass the location of the post, if they do not touch the original

Name: Anonymous 2010-12-18 10:56

>>10
Doesn't matter, it's not a real language anyway.

Name: Anonymous 2010-12-18 11:37

>>10
(define (nequal? x y) (not (equal? x y)))
(define /prog/ '(("x" "y" "z") (car cdr anticudder eval apply)))

(define remove-post
  (lambda (/prog/-state post)
    (map (lambda (x)
           (filter (lambda (x)
                     (nequal? x post)) x))
         /prog/-state)))

(define new-/prog/ (remove-post /prog/ 'anticudder))
; => '(("x" "y" "z") (car cdr eval apply))


Then they pass new-/prog/ to the Shiichan monad, without nothing.

Name: Anonymous 2010-12-18 11:58

>>12
*without modifying nothing.

Name: Anonymous 2010-12-18 12:51

>>13
*anything

Name: Anonymous 2010-12-18 13:07

>>14
*Prego, donate soldi al nostro caro Jimmy Wales.
Please, donate money to our dear Jimmy Wales.
Por favor, donar dinero a nuestro querido Jimmy Wales.
S'il vous plaît, donner de l'argent à notre cher Jimmy Wales.
お金を寄附しますでください,Jimmy Wales様へ。
请捐钱给我们亲爱的吉米威尔士。
우리의 친애하는 지미 웨일즈로 돈을 기부하십시오.
Xin vui lòng, tặng tiền cho thân yêu của Jimmy Wales của chúng tôi.

Name: Anonymous 2011-02-04 19:41

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