From fea621523e18f951a3e0a8e4968984edda0a0476 Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner Date: Thu, 27 Jul 2017 01:43:41 +0200 Subject: [PATCH] Remove outdated pure function limitation Parameters of pure functions need not be immutable --- const-faq.dd | 1 - 1 file changed, 1 deletion(-) diff --git a/const-faq.dd b/const-faq.dd index 1f04b0936c..a616a1efdd 100644 --- a/const-faq.dd +++ b/const-faq.dd @@ -268,7 +268,6 @@ $(ITEM invariant, What is $(I immutable) good for?) $(LI Data races, tearing, sequential consistency, and cache consistency are all non-issues when working with immutable data.) - $(LI Pure functions can only accept immutable parameters.) $(LI When doing a $(I deep copy) of a data structure, the immutable portions need not be copied.) $(LI Invariance allows a large chunk of data to be treated