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 条
  • [31] PROGRAMMING-LANGUAGES
    TESLER, LG
    SCIENTIFIC AMERICAN, 1984, 251 (03) : 70 - &
  • [32] The essence of programming languages
    Wirth, N
    MODULAR PROGRAMMING LANGUAGES, PROCEEDINGS, 2003, 2789 : 1 - 11
  • [33] Progress in programming languages
    Bruce, KB
    ACM COMPUTING SURVEYS, 1996, 28 (01) : 245 - 247
  • [34] Understanding Programming Languages
    Raymond Turner
    Minds and Machines, 2007, 17 : 203 - 216
  • [35] Programming Languages in Economics
    Department of Economics, University of Texas, Austin, TX 78712, United States
    不详
    Comput Econ, 1-2 (151-181):
  • [36] PROGRAMMING-LANGUAGES
    BLUM, BI
    M D COMPUTING, 1984, 1 (05): : 60 - 68
  • [37] PROGRAMMING-LANGUAGES
    THEWLIS, D
    SOFTWARE ENGINEERING JOURNAL, 1986, 1 (04): : 146 - 146
  • [38] Quantum programming languages
    Bettina Heim
    Mathias Soeken
    Sarah Marshall
    Chris Granade
    Martin Roetteler
    Alan Geller
    Matthias Troyer
    Krysta Svore
    Nature Reviews Physics, 2020, 2 : 709 - 722
  • [39] uu for programming languages
    Ferreira, U
    ACM SIGPLAN NOTICES, 2000, 35 (08) : 20 - 30
  • [40] Quantifying programming languages
    Fennema, B
    DR DOBBS JOURNAL, 2004, 29 (11): : 10 - 10