Implicit Parameter Scope Handling in Programming Languages

被引:0
作者
Vanags, Mikus [1 ]
机构
[1] Logics Res Ctr, Sterstu St 7-6, LV-1004 Riga, Latvia
来源
BALTIC JOURNAL OF MODERN COMPUTING | 2025年 / 13卷 / 01期
关键词
programming languages; implicit parameter; anonymous methods; parameter scope;
D O I
10.22364/bjmc.2025.13.1.04
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper introduces a novel abstract syntax approach designed to simplify the scope and implicit parameter management in nested anonymous methods across programming languages. The proposed innovations include: 1) non-capturing function - a new method for declaring anonymous methods that does not capture implicit parameters, and 2) shorthand higher-order function call - a novel technique for invoking methods that captures implicit parameters within the scope of the function call, thereby generating a new anonymous function to be passed to the calling function. These advancements enable a more concise syntax for anonymous methods, enhancing code readability. Furthermore, the approach to implicit parameter handling in nested anonymous methods improves the conceptual understanding of boundaries and interactions between complex nested anonymous functions. Collectively, these innovations pave the way for more intuitive, maintainable, and expressive anonymous methods in programming languages.
引用
收藏
页码:67 / 74
页数:8
相关论文
共 50 条
  • [21] PROGRAMMING-LANGUAGES AS THOUGHT MODELS
    RECHENBERG, P
    STRUCTURED PROGRAMMING, 1990, 11 (03): : 105 - 115
  • [22] Formal Semantics of Programming Languages - An Overview
    Mosses, Peter D.
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2006, 148 (01) : 41 - 73
  • [23] Report on Networking and Programming Languages 2017
    Bjorner, Nikolaj
    Canini, Marco
    Sultana, Nik
    ACM SIGCOMM COMPUTER COMMUNICATION REVIEW, 2017, 47 (05) : 39 - 41
  • [24] PROGRAMMING GRAPHICS PROCESSORS WITH EXTENSIBLE LANGUAGES
    Adinetz, A. V.
    BULLETIN OF THE SOUTH URAL STATE UNIVERSITY SERIES-MATHEMATICAL MODELLING PROGRAMMING & COMPUTER SOFTWARE, 2011, (09): : 52 - 63
  • [25] Programming Languages and Law A Research Agenda
    Grimmelmann, James
    PROCEEDINGS OF THE 2022 SYMPOSIUM ON COMPUTER SCIENCE AND LAW, CSLAW 2022, 2022, : 155 - 165
  • [26] The Safety and Performance of Prominent Programming Languages
    Bugden, William
    Alahmar, Ayman
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2022, 32 (05) : 713 - 744
  • [27] TEACHING OF PROGRAMMING LANGUAGES IN OPERATIONAL RESEARCH
    Fabry, Jan
    EFFICIENCY AND RESPONSIBILITY IN EDUCATION 2013, 2013, : 112 - 120
  • [28] Ranking programming languages by energy efficiency
    Pereira, Rui
    Couto, Marco
    Ribeiro, Francisco
    Rua, Rui
    Cunha, Jacome
    Fernandes, Joao Paulo
    Saraiva, Joao
    SCIENCE OF COMPUTER PROGRAMMING, 2021, 205
  • [29] Teaching Programming Languages: Java']Java as a metalanguage
    Ortiz, A
    PDPTA'2001: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, 2001, : 1798 - 1802
  • [30] Computing and Programming Languages as Medium for Teaching Ethics
    Keturakis, Saulius
    Global Cooperation in Engineering Education: Innovative Technologies, Studies and Professional Development - International Conference Proceedings, 2008, : 56 - 59