Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions/identifiers should allow digits in their names. #58

Closed
skx opened this issue Dec 23, 2019 · 0 comments · Fixed by #59
Closed

Functions/identifiers should allow digits in their names. #58

skx opened this issue Dec 23, 2019 · 0 comments · Fixed by #59

Comments

@skx
Copy link
Owner

skx commented Dec 23, 2019

e.g. This should work:

function max(a,b) {
   return( a > b ? a : b );
}

function max2(a,b) {
    if ( a > b ) {
        return a;
    } else {
        return b;
    }
}

puts( "max(1,2) -> ", max(1, 2), "\n" );
puts( "max2(-1,-2) -> ", max2(-1, -2), "\n" );

skx added a commit that referenced this issue Dec 23, 2019
This PR closes #58 by allowing digits in identifiers.  This might
cause surprises.
@skx skx closed this as completed in #59 Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant