Generic programming with C plus plus concepts and Haskell type classes-a comparison

被引:4
|
作者
Bernardy, Jean-Philippe [1 ,2 ]
Jansson, Patrik [1 ,2 ]
Zalewski, Marcin [3 ]
Schupp, Sibylle [4 ]
机构
[1] Chalmers Univ Technol, Dept Comp Sci & Engn, SE-41296 Gothenburg, Sweden
[2] Univ Gothenburg, SE-41296 Gothenburg, Sweden
[3] Indiana Univ, Open Syst Lab, Bloomington, IN 47405 USA
[4] Hamburg Univ Technol, Inst Software Syst, D-21073 Hamburg, Germany
关键词
D O I
10.1017/S095679681000016X
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Earlier studies have introduced a list of high-level evaluation criteria to assess how well a language supports generic programming. Languages that meet all criteria include Haskell because of its type classes and C++ with the concept feature. We refine these criteria into a taxonomy that captures commonalities and differences between type classes in Haskell and concepts in C++ and discuss which differences are incidental and which ones are due to other language features. The taxonomy allows for an improved understanding of language support for generic programming, and the comparison is useful for the ongoing discussions among language designers and users of both languages.
引用
收藏
页码:271 / 302
页数:32
相关论文
共 50 条
  • [31] Combination of OOP Characteristic in C plus plus Programming Course
    Shang Shuyuan
    Du Yunqing
    ICFCSE 2011: 2011 INTERNATIONAL CONFERENCE ON FUTURE COMPUTER SUPPORTED EDUCATION, VOL 2, 2011, : 274 - 276
  • [32] Comprehension of Thread Scheduling for the C plus plus Programming Language
    Gyen, Attila
    Pataki, Norbert
    PROCEEDINGS OF 2021 INTERNATIONAL CONFERENCE ON DATA AND SOFTWARE ENGINEERING (ICODSE): DATA AND SOFTWARE ENGINEERING FOR SUPPORTING SUSTAINABLE DEVELOPMENT GOALS, 2021,
  • [33] Introducing Embedded Systems in the first C/C plus plus Programming Class
    Hamblen, James O.
    Smith, Zachery C.
    Woo, Winne W.
    2013 IEEE INTERNATIONAL CONFERENCE ON MICROELECTRONIC SYSTEMS EDUCATION (MSE), 2013, : 1 - 4
  • [34] Customizable and scalable automated assessment of C/C plus plus programming assignments
    Delgado-Perez, Pedro
    Medina-Bulo, Inmaculada
    COMPUTER APPLICATIONS IN ENGINEERING EDUCATION, 2020, 28 (06) : 1449 - 1466
  • [35] Refactoring GrPPI: Generic Refactoring for Generic Parallelism in C plus
    Brown, Christopher
    Janjic, Vladimir
    Barwell, Adam D.
    Garcia, J. Daniel
    MacKenzie, Kenneth
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2020, 48 (04) : 603 - 625
  • [36] Functional Programming Library for C plus
    Krasnov, M. M.
    PROGRAMMING AND COMPUTER SOFTWARE, 2020, 46 (05) : 330 - 340
  • [37] Revisiting actor programming in C plus
    Charousset, Dominik
    Hiesgen, Raphael
    Schmidt, Thomas C.
    COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2016, 45 : 105 - 131
  • [38] Generic advice: On the combination of AOP with generative programming in AspectC plus
    Lohmann, D
    Blaschke, G
    Spinczyk, O
    GENERATIVE PROGRAMMING AND COMPONENT ENGINEERING 2004, PROCEEDINGS, 2004, 3286 : 55 - 74
  • [39] SimpleConcepts: A Lightweight Extension to C plus plus to Support Constraints on Generic Types
    Milewicz, Reed
    Mernik, Marjan
    Pirkelbauer, Peter
    COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2014, 11 (04) : 1361 - 1379
  • [40] Multi-Target Vectorization with MTPS C plus plus Generic Library
    Kirschenmann, Wilfried
    Plagne, Laurent
    Vialle, Stephane
    APPLIED PARALLEL AND SCIENTIFIC COMPUTING, PT II, 2012, 7134 : 336 - 346