Optimized syntax concept for variable scoping, loop structures, and flow control in programming language

Authors

DOI:

https://doi.org/10.20535/2786-8729.7.2025.341609

Keywords:

programming language, language design, syntax model, variable scoping, loop structures, flow control, error handling, code readability, syntax optimization, syntax unification

Abstract

This article examines syntactic redundancy in modern programming languages and its impact on code perception, readability, and logical consistency. The object of the study is the analysis of redundant syntactic constructs, particularly those related to variable declarations, scope management, loop structures, and flow control mechanisms. The primary aim is to develop and substantiate an optimized syntax concept. This concept combines the declarative rigor of classical languages with the simplicity of dynamic systems. The goal is to reduce code redundancy and improve cognitive ergonomics for developers.

The research methodology involved a comparative analysis of key syntactic elements across different language paradigms. The materials for the study included a formal comparison of semantics and an evaluation of equivalent program fragments written in classical languages and in the proposed conceptual language.

The results show that the proposed syntactic model significantly reduces auxiliary symbols, improves code clarity, and lowers cognitive load. The scientific novelty is a holistic syntax model defined by three key innovations. First, a simplified variable management system creates local variables automatically, eliminating keywords like var or global and using explicit markers for outer-scope access. Second, a universal loop operator unifies the functionality of traditional for, while, and do-while loops, allowing condition evaluation at the beginning, middle, or end of the block. Third, the traditional goto operator is replaced with a structured try-throw construct, providing a safe, semantically coherent mechanism for exiting nested blocks and error handling. This unified approach forms a basis for further research into minimalist syntax focused on naturalness and readability.

Author Biographies

Oleksandr Zhyrytovskyi, Open International University of Human Development "Ukraine", Kyiv

PhD Student of the Institute of Computer Technologies

Roman Zubko, Open International University of Human Development "Ukraine", Kyiv

Associate Professor of the Department of Computer Engineering of the Institute of Computer Technologies, Candidate of Technical Science

References

D. Latha, N. Maisaiah, M. D. Shireen, S. Saad, S. Ayyan, and K. A. Ali Sajid, “The evolution and diversity of programming languages: A comprehensive exploration”, International Research Journal on Advanced Engineering Hub (IRJAEH), vol. 3, no. 4, 2025, pp. 1697–1701. https://doi.org/10.47392/IRJAEH.2025.0243

A. Wirfs-Brock and B. Eich, “JavaScript: The First 20 Years”, Proc. ACM Program. Lang., HOPL-IV, June 2020, pp. 1–25. https://doi.org/10.1145/3386327

G. L. Steele Jr., “It’s time for a new old language”, in Proc. ACM SIGPLAN Int. Symp. New Ideas, New Paradigms, and Reflections on Programming and Software (Onward! ’20), 2020, pp. 165–177. https://doi.org/10.1145/3018743.3018773

M. U. Tariq, M. B. Bashir, and A. Sohail, “Code Readability Management of High-level Programming Languages: A Comparative Study”, Int. J. Adv. Comput. Sci. Appl. (IJACSA), vol. 11, no. 3, 2020, pp. 515–522. https://doi.org/10.14569/IJACSA.2020.0110375

M. Pandey, S. Oney, and A. Begel, “Towards Inclusive Source Code Readability Based on the Cognitive Aspects of Programming”, Proc. ACM, 2024, pp. 1–18. https://doi.org/10.1145/3613904.3642512

M. Segedinac, G. Savić, I. Zeljković, J. Slivka, and Z. Konjović, “Assessing Code Readability in Python Programming”, Comput. Appl. Eng. Educ., 2023, pp. 1654–1670. https://doi.org/10.1002/cae.22685

A. Stefik and S. Siebert, “An empirical investigation into programming language syntax”, ACM Trans. Comput. Educ., vol. 13, no. 4, Art. 19, Nov. 2013, pp. 1–40. https://doi.org/10.1145/2534973

V. Lappi, V. Tirronen, and J. Itkonen, “A replication study on the intuitiveness of programming language syntax”, Softw. Qual. J., 2023, pp. 1069–1098. https://doi.org/10.1007/s11219-023-09631-7

Z. Shen, Y. Li, J. Ge, X. Chen, C. Li, L. Huang, and B. Luo, “An Empirical Study of Code Simplification Methods in Programming Languages”, in Proc. ACM Symp. Appl. Comput. (SAC ’24), 2024. https://doi.org/10.1145/3720540

M. S. New, D. R. Licata, and A. Ahmed, “Gradual type theory,” Journal of Functional Programming, vol. 31, art. e21, 2021, pp. 1–51. https://doi.org/10.1017/S0956796821000125

E. W. Dijkstra, “Go To Statement Considered Harmful”, Commun. ACM, vol. 11, no. 3, pp. 147–148, Mar. 1968. https://doi.org/10.1145/362929.362947

G. Hutton, “Programming language semantics: It’s easy as 1,2,3”, J. Funct. Program., vol. 33, Art. e9, 2023, pp. 1–23. https://doi.org/10.1017/S0956796823000072

S. Y. El-Kassas, M. A. El-Sayed, and A. A. El-Licy, “A comparative study of modern programming languages: Go, Rust, Swift, and Kotlin”, in Proc. IEEE 14th Int. Conf. Comput. Eng. Syst. (ICCES), 2019, pp. 240–245. https://doi.org/10.1109/ICCES48960.2019.9068155

J. Bezanson, S. Karpinski, V. B. Shah, and A. Edelman, “Julia: A fresh approach to numerical computing”, SIAM Rev., vol. 59, no. 1, pp. 65–98, 2017. https://doi.org/10.1137/141000671

N. Shi, “Improving Undergraduate Novice Programmer Comprehension through Case-Based Teaching with Roles of Variables to Provide Scaffolding”, Information, vol. 12, no. 10, art. 424, 2021, pp. 1–18. https://doi.org/10.3390/info12100424

M. Vinueza-Morales, J. Rodas-Silva, and J. Córdova-Morán, “Teaching programming in higher education: A bibliometric analysis of trends, technologies, and pedagogical approaches,” Frontiers in Education, vol. 10, Art. no. 1525917, 2025, pp. 1–12. https://doi.org/10.3389/feduc.2025.1525917

Downloads

Published

2025-12-27

How to Cite

[1]
O. Zhyrytovskyi and R. Zubko, “Optimized syntax concept for variable scoping, loop structures, and flow control in programming language”, Inf. Comput. and Intell. syst. j., no. 7, pp. 142–159, Dec. 2025.