[Cuis-dev] What is the meaning of "::" in code examples ?

Jaromir Matas mail at jaromir.net
Fri Mar 10 12:22:18 PST 2023


> The same goes for binary messages, e.g.
>
> 2 + 3 :: isPrime

True, and it could be worth mentioning this explicitly in the Cuis book as well as this (::) is an extension not present in Squeak or Pharo…
Thanks,

--

Jaromír Matas
mail at jaromir.net


From: Andres Valloud via Cuis-dev<mailto:cuis-dev at lists.cuis.st>
Sent: Friday, March 10, 2023 21:06
To: Jaromir Matas via Cuis-dev<mailto:cuis-dev at lists.cuis.st>
Cc: Andres Valloud<mailto:ten at smallinteger.com>
Subject: Re: [Cuis-dev] What is the meaning of "::" in code examples ?

The same goes for binary messages, e.g.

2 + 3 :: isPrime

On 3/10/23 10:18 AM, Jaromir Matas via Cuis-dev wrote:
> In order to be able to do the same with keyword messages the
> double-colon has been added to the compiler:
>
> #(1 2 3) raisedTo: 2 :: max: [:x|x] :: negated
>
--
Cuis-dev mailing list
Cuis-dev at lists.cuis.st
https://lists.cuis.st/mailman/listinfo/cuis-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230310/7b9e3f97/attachment.htm>


More information about the Cuis-dev mailing list