How to resolve the algorithm Case-sensitivity of identifiers step by step in the EchoLisp programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Case-sensitivity of identifiers step by step in the EchoLisp programming language

Table of Contents

Problem Statement

Three dogs (Are there three dogs or one dog?) is a code snippet used to illustrate the lettercase sensitivity of the programming language. For a case-sensitive language, the identifiers dog, Dog and DOG are all different and we should get the output: For a language that is lettercase insensitive, we get the following output:

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Case-sensitivity of identifiers step by step in the EchoLisp programming language

Source code in the echolisp programming language

(define dog "Benjamin")
(define Dog "Samba")
(define DOG "Bernie")

(printf "The three dogs are named %a, %a and %a. " dog Dog DOG)
    The three dogs are named Benjamin, Samba and Bernie.


  

You may also check:How to resolve the algorithm Miller–Rabin primality test step by step in the REXX programming language
You may also check:How to resolve the algorithm Singly-linked list/Element definition step by step in the Swift programming language
You may also check:How to resolve the algorithm Pseudo-random numbers/Splitmix64 step by step in the Java programming language
You may also check:How to resolve the algorithm Guess the number step by step in the LOLCODE programming language
You may also check:How to resolve the algorithm Loops/For step by step in the Agena programming language