Skip to content

Indicate that the type function is preferred #695

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

Merged
merged 2 commits into from
Dec 1, 2016

Conversation

npwalker
Copy link
Contributor

Prior to this commit, users coming to the type_of function would not realize that the type function in puppet does the same thing and is preferred over type_of.

After this commit, we have a comment indicating the above.

Prior to this commit, users coming to the type_of function would not realize that the type function in puppet does the same thing and is preferred over type_of. 

After this commit, we have a comment indicating the above.
Copy link
Contributor

@hlindberg hlindberg left a comment

Choose a reason for hiding this comment

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

Yes!

@npwalker
Copy link
Contributor Author

This is also related to this documentation ticket.

https://tickets.puppetlabs.com/browse/DOCUMENT-617

@DavidS
Copy link
Contributor

DavidS commented Nov 30, 2016

Please also add that info to the README - we are not (YET!) using puppet-strings.

The type function in Puppet is preferred over the type_of function here in stdlib.  This commit adds this information to the README
@npwalker
Copy link
Contributor Author

Updated to indicate the same in the README

@DavidS DavidS merged commit d3bbd3c into puppetlabs:master Dec 1, 2016
@DavidS
Copy link
Contributor

DavidS commented Dec 1, 2016

Thanks! We should also probably deprecate this at some point, y/n?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants