Skip to content

Add require_* templates to generated functions - #1106

Merged
WardBrian merged 4 commits into
masterfrom
overloading-templates
Feb 2, 2022
Merged

Add require_* templates to generated functions#1106
WardBrian merged 4 commits into
masterfrom
overloading-templates

Conversation

@WardBrian

Copy link
Copy Markdown
Member

Submission Checklist

  • Run unit tests
  • Documentation
    • If a user-facing facing change was made, the documentation PR is here:
    • OR, no user-facing changes were made

Release notes

Closes #1105 by adding require_* templates to the code generated by user-defined functions.

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

@rok-cesnovar rok-cesnovar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Merge assuming tests pass. If @SteveBronder has time to have a look in the next day or two, I wouldn't mind him taking a quick peek at this for a sanity check.

I think an RC2 is in line with this as well.

Thanks for jumping on this so quick!

@WardBrian

Copy link
Copy Markdown
Member Author

@SteveBronder messaged me to say he can take a look later, which I'd also appreciate (never can be too careful around these templates)

@SteveBronder SteveBronder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! There's a few cleanups I'd like to do in the codegen but nothing that's a blocker so those can wait till after the release

@rok-cesnovar

Copy link
Copy Markdown
Member

One thing that I thought of now. What about if some args are varmat? Or do we not handle varmats with udfs?

@SteveBronder

Copy link
Copy Markdown
Contributor

^not supported yet so all good

@WardBrian
WardBrian merged commit 1800adb into master Feb 2, 2022
@WardBrian
WardBrian deleted the overloading-templates branch February 2, 2022 14:12
@WardBrian WardBrian mentioned this pull request Feb 23, 2022
2 tasks
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 this pull request may close these issues.

[BUG] Function overloading when the number of arguments match is a bit brittle

3 participants