[Oberon] Re (2): Alternatives for cases.

peter at easthope.ca peter at easthope.ca
Sat Mar 9 16:26:18 CET 2019

From:	Chris Burrows <chris at cfbsoftware.com>
Date:	Sat, 9 Mar 2019 17:47:52 +1030
> If I was able to succinctly write
> IF ch IN {"A", "E", "I", "O", "U"} THEN ...
> isLetter := ch IN {"A".."Z", "a".."z"};
> etc. etc.
> like I was able to in Modula-2 then I might have less need for these features of CASE.

Hypothetically, introduce a higher layer of abstraction appropriate to 
the objective.  For example, make a J interpreter and write the 
control procedures in J.
Set inclusion is used in the tags-removal example.
A detailed tutorial is available via the "explanation" link.

Regards,                          ... Lyall E.

Message composed and transmitted by software designed to avoid the 
complication and vulnerability of antivirus software.

123456789 123456789 123456789 123456789 123456789 123456789 123456789
Pender Is., BC: +1 604 670 0140     Washington State: +1 360 639 0202
http://easthope.ca/Peter.html              Bcc: peter at easthope. ca

More information about the Oberon mailing list