{"id":19286,"date":"2026-09-06T01:59:59","date_gmt":"2026-09-05T15:59:59","guid":{"rendered":"https:\/\/geoffreychen.com\/referential-transparency-allows-substitution-without-changing-results\/"},"modified":"2026-09-06T01:59:59","modified_gmt":"2026-09-05T15:59:59","slug":"referential-transparency-allows-substitution-without-changing-results","status":"publish","type":"post","link":"https:\/\/geoffreychen.com\/zh\/referential-transparency-allows-substitution-without-changing-results\/","title":{"rendered":"\u5f15\u7528\u900f\u660e\uff1a\u4e3a\u4ec0\u4e48\u66ff\u6362\u8868\u8fbe\u5f0f\u4e0d\u4f1a\u6539\u53d8\u7ed3\u679c\uff1f"},"content":{"rendered":"<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/public-assets.geoffreychen.com\/wordpress\/articles\/referential-transparency-allows-substitution-without-changing-results\/8575c16652ea1f307573b66e.jpg?w=1140&#038;ssl=1\" alt=\"\u5f15\u7528\u900f\u660e\uff1a\u4e3a\u4ec0\u4e48\u66ff\u6362\u8868\u8fbe\u5f0f\u4e0d\u4f1a\u6539\u53d8\u7ed3\u679c\uff1f\" loading=\"lazy\"><\/p>\n<p>\u5f15\u7528\u900f\u660e\u4e0d\u662f\u201c\u4ee3\u7801\u5bb9\u6613\u770b\u61c2\u201d\uff0c\u800c\u662f\u4e00\u6761\u66ff\u6362\u89c4\u5219\uff1a\u4e00\u4e2a\u8868\u8fbe\u5f0f\u53ef\u4ee5\u88ab\u5b83\u7684\u503c\u66ff\u6362\uff0c\u7a0b\u5e8f\u5176\u4f59\u884c\u4e3a\u4ecd\u4e0d\u6539\u53d8\u3002\u6bd4\u5982\u8ba1\u7b972+3\u7684\u5730\u65b9\u90fd\u53ef\u76f4\u63a5\u5199\u62105\uff1b\u4f46\u201c\u8bfb\u53d6\u5f53\u524d\u65f6\u95f4\u201d\u4e0d\u80fd\u5148\u7b97\u4e00\u6b21\u518d\u5904\u5904\u66ff\u6362\uff0c\u56e0\u4e3a\u7ed3\u679c\u4f1a\u968f\u8c03\u7528\u65f6\u523b\u53d8\u5316\u3002<\/p>\n<p>\u5b83\u7684\u91cd\u8981\u6027\u5728\u4e8e\u628a\u6574\u4f53\u95ee\u9898\u62c6\u56de\u5c40\u90e8\u3002\u53ea\u770b\u8f93\u5165\u548c\u8868\u8fbe\u5f0f\uff0c\u5c31\u80fd\u5224\u65ad\u8f93\u51fa\uff0c\u4e0d\u5fc5\u540c\u65f6\u8ffd\u8e2a\u9690\u85cf\u72b6\u6001\u3001\u5916\u90e8\u6587\u4ef6\u6216\u6267\u884c\u987a\u5e8f\u3002\u6d4b\u8bd5\u3001\u7f13\u5b58\u548c\u5e76\u884c\u91cd\u7ec4\u56e0\u6b64\u66f4\u53ef\u9760\u3002<\/p>\n<p>\u5f15\u7528\u900f\u660e\u4e0e\u786e\u5b9a\u6027\u76f8\u8fd1\uff0c\u5374\u4e0d\u5b8c\u5168\u76f8\u540c\u3002\u4e00\u4e2a\u64cd\u4f5c\u5373\u4f7f\u6bcf\u6b21\u8fd4\u56de\u540c\u6837\u7ed3\u679c\uff0c\u82e5\u540c\u65f6\u4fee\u6539\u5916\u90e8\u72b6\u6001\uff0c\u7528\u7ed3\u679c\u66ff\u6362\u5b83\u4ecd\u4f1a\u6f0f\u6389\u5f71\u54cd\uff1b\u4e0d\u53ef\u53d8\u6027\u5219\u5e38\u5e2e\u52a9\u5b9e\u73b0\u5f15\u7528\u900f\u660e\uff0c\u5374\u4e0d\u662f\u8fd9\u6761\u89c4\u5219\u672c\u8eab\u3002\u4e2d\u5fc3\u5224\u65ad\u662f\uff1a\u5f15\u7528\u900f\u660e\u4fdd\u62a4\u7684\u4e0d\u662f\u67d0\u79cd\u7f16\u7a0b\u98ce\u683c\uff0c\u800c\u662f\u201c\u5c40\u90e8\u66ff\u6362\u4e0d\u7834\u574f\u6574\u4f53\u201d\u7684\u63a8\u7406\u8fb9\u754c\u3002<\/p>\n<p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":17897162,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_geoff_meta_description_en":"Referential transparency lets an expression be replaced by its value without changing behaviour, making local reasoning and safe recomposition possible.","_geoff_meta_description_zh":"\u5f15\u7528\u900f\u660e\u5141\u8bb8\u628a\u8868\u8fbe\u5f0f\u76f4\u63a5\u6362\u6210\u5176\u503c\u800c\u4e0d\u6539\u53d8\u6574\u4f53\u884c\u4e3a\uff1b\u5b83\u8ba9\u5c40\u90e8\u63a8\u7406\u3001\u6d4b\u8bd5\u4e0e\u91cd\u7ec4\u66f4\u53ef\u9760\uff0c\u4f46\u4e0d\u7b49\u4e8e\u6240\u6709\u786e\u5b9a\u6027\u8ba1\u7b97\u90fd\u6ca1\u6709\u9690\u85cf\u72b6\u6001\u3002","_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[787294141],"tags":[787299479,787299477,787299480,787299478],"class_list":["post-19286","post","type-post","status-publish","format-standard","hentry","category-philosophical-concepts","tag-functional-reasoning","tag-referential-transparency","tag-functional-reasoning-zh","tag-referential-transparency-zh",""],"translatepress_titles":{"en_AU":"Referential Transparency: Why Can an Expression Be Replaced Without Changing the Result?","zh_CN":"\u5f15\u7528\u900f\u660e\uff1a\u4e3a\u4ec0\u4e48\u66ff\u6362\u8868\u8fbe\u5f0f\u4e0d\u4f1a\u6539\u53d8\u7ed3\u679c\uff1f"},"jetpack_publicize_connections":[],"jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ar9H-514","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/posts\/19286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/users\/17897162"}],"replies":[{"embeddable":true,"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/comments?post=19286"}],"version-history":[{"count":0,"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/posts\/19286\/revisions"}],"wp:attachment":[{"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/media?parent=19286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/categories?post=19286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geoffreychen.com\/zh\/wp-json\/wp\/v2\/tags?post=19286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}