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

Alexandre Rousseau yalexr at gmail.com
Fri Mar 10 12:35:46 PST 2023


4 + 3 :: isPrime true
4 + 3 ; isPrime false

On Fri, Mar 10, 2023 at 3:22 PM Jaromir Matas via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> > 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 <cuis-dev at lists.cuis.st>
> *Sent: *Friday, March 10, 2023 21:06
> *To: *Jaromir Matas via Cuis-dev <cuis-dev at lists.cuis.st>
> *Cc: *Andres Valloud <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
>
>
> --
> 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/bef7fc18/attachment.htm>


More information about the Cuis-dev mailing list