REAL

Logical conditions in programming languages: review, discussion and generalization

Nagy, Benedek and Abuhmaidan, Khaled and Aldwairi, Monther (2023) Logical conditions in programming languages: review, discussion and generalization. Annales Mathematicae et Informaticae, 57. pp. 65-77. ISSN 1787-6117

[img]
Preview
Text
65_77.pdf - Published Version

Download (633kB) | Preview

Abstract

Boolean logic is widely used in almost every discipline including linguistics, philosophy, mathematics, computer science and engineering. Boolean logic is characterized by the two possible truth values, and various logical connectives/operations allow us to make compound statements, conditions. Most of the programming languages, if not all, have some of the logic operations: conjunction, disjunction and negation. Actually, since the set of these three operations form a basis, any logical statement can be formed by them. However, on the one hand, there are smaller bases as well, i.e., one of the conjunction or disjunction is already superfluous. Moreover, there are bases with only one operation, e.g., by NAND. On the other hand, one may allow other operations helping the programmer/user to define the conditions of conditional statements and loops in a simpler manner. In this paper we discuss these issues, including some practical points, implementation issues and short cut evaluations for various operations.

Item Type: Article
Uncontrolled Keywords: High level programming languages, conditional statements, loop conditions, logical connectives, short cut evaluation, formal logic
Subjects: Q Science / természettudomány > QA Mathematics / matematika
Depositing User: Tibor Gál
Date Deposited: 11 Aug 2023 11:11
Last Modified: 11 Aug 2023 11:11
URI: http://real.mtak.hu/id/eprint/171294

Actions (login required)

Edit Item Edit Item