From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 688987F30A for ; Fri, 8 Mar 2013 23:21:37 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of philippe.veber@gmail.com) identity=pra; client-ip=74.125.82.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="philippe.veber@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of philippe.veber@gmail.com designates 74.125.82.169 as permitted sender) identity=mailfrom; client-ip=74.125.82.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="philippe.veber@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-we0-f169.google.com) identity=helo; client-ip=74.125.82.169; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="postmaster@mail-we0-f169.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At4BAAFjOlFKfVKpgmdsb2JhbABDxE+BVQgWDgEBFBQSBiSCIwkBAQQBQAEbHQEDDAYFAwEHOyIBEQEFARwGiBMBAwkGnWqMMoJ7hDsKGScNWYh8AQUMjwAHg0ADllOPEBYphC4 X-IPAS-Result: At4BAAFjOlFKfVKpgmdsb2JhbABDxE+BVQgWDgEBFBQSBiSCIwkBAQQBQAEbHQEDDAYFAwEHOyIBEQEFARwGiBMBAwkGnWqMMoJ7hDsKGScNWYh8AQUMjwAHg0ADllOPEBYphC4 X-IronPort-AV: E=Sophos;i="4.84,810,1355094000"; d="scan'208";a="4726122" Received: from mail-we0-f169.google.com ([74.125.82.169]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Mar 2013 23:21:36 +0100 Received: by mail-we0-f169.google.com with SMTP id t11so1628956wey.0 for ; Fri, 08 Mar 2013 14:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=DXqHgDfgKu26JzDLI86PwjZjv+1DJpygMRa+Vtj6eSY=; b=XJMNt9xCMv244wpL17naG24X0YkPOEkIIF5hmVDL97paIiTFVyQd2HZZI5CyI2BpQs iUtO4dGRIKZGw6S1ES4w3FiOz9SuBlzXZnDwvuZnjpeVshljiPEHU1uw+c2jUlidgNFJ Toy8O/KEe85TDCrrM/znv4DALytOEQoa7PO7gFfZixwDtLKV46jZU0Zu008gsRireqx0 vlLqHlvv2yULPjLweJZBgh7SdxpuD2jKsq0IeQkryjF2xhy0ZMBfvtzmLQ0usfRPoQtE TL93b96VilBtar9Ld5bZW4/aDOJc9lrvWX+0fU78zBfTENIuWHOTUWGaQp9+uv+F9/Ts p8fw== X-Received: by 10.194.237.40 with SMTP id uz8mr6824530wjc.49.1362781296588; Fri, 08 Mar 2013 14:21:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.87.230 with HTTP; Fri, 8 Mar 2013 14:21:16 -0800 (PST) In-Reply-To: References: From: Philippe Veber Date: Fri, 8 Mar 2013 23:21:16 +0100 Message-ID: To: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Cc: caml users Content-Type: multipart/alternative; boundary=089e0149372016ff2804d7713fe3 X-Validation-by: philippe.veber@gmail.com Subject: Re: [Caml-list] Signals of signals in react --089e0149372016ff2804d7713fe3 Content-Type: text/plain; charset=ISO-8859-1 > > P.S. You should replace your use of ( == ) in S.map by S.equal otherwise > you'll get potentially incorrect results (too many updates) with imperative > dependent signals if your map function also returns constant signals --- > unless you think that two constant signals with the same value should not > be thought as equal. > Thanks, I had overlooked the existence of S.equal. --089e0149372016ff2804d7713fe3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

P.S. You should replace your use of ( =3D=3D ) in S.map by S.equal otherwis= e you'll get potentially incorrect results (too many updates) with impe= rative dependent signals if your map function also returns constant signals= --- unless you think that two constant signals with the same value should = not be thought as equal.

Thanks, I had overlooked the existence of S.equal.
--089e0149372016ff2804d7713fe3--