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] Tools for visual exploration of scope and parameter passing in a programming languages course
    Lawrence Univ
    SIGCSE Bull, (305-309):
  • [2] New mechanisms for invocation handling in concurrent programming languages
    Chung, M
    Olsson, RA
    COMPUTER LANGUAGES, 1998, 24 (04): : 245 - 270
  • [3] EXCEPTION HANDLING AND RESIDUAL ERRORS IN PROGRAMMING-LANGUAGES
    BANATRE, JP
    GAMATIE, B
    PLOYETTE, F
    RAIRO-INFORMATIQUE-COMPUTER SCIENCE, 1981, 15 (01): : 3 - 38
  • [4] Hierarchically structured synchronization and exception handling in parallel languages using dynamic scope
    Yasugi, M
    PARALLEL AND DISTRIBUTED COMPUTING FOR SYMBOLIC AND IRREGULAR APPLICATIONS, 2000, : 122 - 148
  • [5] Object fault handling for persistent programming languages. A performance evaluation
    Hosking, Antony L.
    Eliot, J.
    Moss, B.
    SIGPLAN Notices (ACM Special Interest Group on Programming Languages), 1993, 28 (10):
  • [6] OBJECT FAULT HANDLING FOR PERSISTENT PROGRAMMING-LANGUAGES - A PERFORMANCE EVALUATION
    HOSKING, AL
    MOSS, JEB
    SIGPLAN NOTICES, 1993, 28 (10): : 288 - 303
  • [7] PROGRAMMING LANGUAGES
    LEATHRUM, JF
    DATAMATION, 1970, 16 (04): : 292 - &
  • [8] PROGRAMMING LANGUAGES
    Tratt, Laurence
    Welc, Adam
    IEEE SOFTWARE, 2014, 31 (05) : 33 - 34
  • [9] PROGRAMMING LANGUAGES
    Niazi, Muaz A.
    COMPUTER, 2012, 45 (10) : 6 - 6
  • [10] PROGRAMMING LANGUAGES
    RUSSELL, DB
    COMPUTER BULLETIN, 1971, 15 (03): : 109 - &