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 条
  • [1] Programming Languages
    Ari, Niyazi
    Mamatnazarova, Nuraiym
    PROCEEDINGS OF THE 2014 11TH INTERNATIONAL CONFERENCE ON ELECTRONICS, COMPUTER AND COMPUTATION (ICECCO'14), 2014,
  • [2] BEYOND PROGRAMMING LANGUAGES
    WINOGRAD, T
    COMMUNICATIONS OF THE ACM, 1979, 22 (07) : 391 - 401
  • [3] Programming Languages in Economics
    David A. Kendrick
    Hans M. Amman
    Computational Economics, 1999, 14 (1-2) : 151 - 181
  • [4] Some Thoughts on Teaching Programming and Programming Languages
    Reynolds, John C.
    ACM SIGPLAN NOTICES, 2008, 43 (11) : 108 - 110
  • [5] Toward Intuitive Programming Languages
    Stefik, Andreas
    Siebert, Susanna
    Slattery, Kim
    Stefik, Melissa
    2011 IEEE 19TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2011, : 213 - 214
  • [6] VISUAL PROGRAMMING-LANGUAGES
    EBELL, MH
    M D COMPUTING, 1993, 10 (05): : 305 - 311
  • [7] Strategies in Programming Languages Today
    Lucas, Salvador
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 124 (02) : 113 - 118
  • [8] Programming Languages as Technical Artifacts
    Turner R.
    Philosophy & Technology, 2014, 27 (3) : 377 - 397
  • [9] A comparison of programming languages in macroeconomics
    Aruoba, S. Boragan
    Fernandez-Villaverde, Jesus
    JOURNAL OF ECONOMIC DYNAMICS & CONTROL, 2015, 58 : 265 - 273
  • [10] A Framework for the Localization of Programming Languages
    Swidan, Alaaeddin
    Hermans, Felienne
    PROCEEDINGS OF THE 2023 ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON SPLASH-E, SPLASH-E 2023, 2023, : 13 - 25