Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !362

Disallow function definition and non-primitive function applications with names that start with an underscore

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Quinten Cabo requested to merge Quinten/sac2c:disallow-functions-starting-with-_ into develop Feb 28, 2025
  • Overview 14
  • Commits 1
  • Changes 1

This MR makes the compiler raise a gentle error if it finds a function definition or application that starts with an _ during parsing.

In a recent meeting we (Bodo, Jordy, David and me) discovered that it is in fact possible for the programmer to make a function that starts with an underscore.

This should not be the case because the idea is that only the compiler can generate functions that start with an _ this way there is never a conflict between compiler generated functions and functions from the programmer.

I made sure that you can still call primitive functions.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: disallow-functions-starting-with-_