Fieldname naming convention

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fieldname naming convention

Dahua Lin
As part of the efforts in cleaning up the Distributions package, I would like to enforce a consistent naming convention to Distribution field names.

Please see the discussion here: https://github.com/JuliaStats/Distributions.jl/issues/395

Please feel free to bring your opinions to the discussion. I may work on this over the weekend or next week.

Dahua

--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fieldname naming convention

Dahua Lin
I am also going to enforce consistent behaviors of common methods:

https://github.com/JuliaStats/Distributions.jl/issues/396

Dahua


On Thursday, July 30, 2015 at 8:13:54 AM UTC+8, Dahua Lin wrote:
As part of the efforts in cleaning up the Distributions package, I would like to enforce a consistent naming convention to Distribution field names.

Please see the discussion here: <a href="https://github.com/JuliaStats/Distributions.jl/issues/395" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2FJuliaStats%2FDistributions.jl%2Fissues%2F395\46sa\75D\46sntz\0751\46usg\75AFQjCNH6Aygeic298FgzqQQqyLS39PHiUA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2FJuliaStats%2FDistributions.jl%2Fissues%2F395\46sa\75D\46sntz\0751\46usg\75AFQjCNH6Aygeic298FgzqQQqyLS39PHiUA&#39;;return true;">https://github.com/JuliaStats/Distributions.jl/issues/395

Please feel free to bring your opinions to the discussion. I may work on this over the weekend or next week.

Dahua

--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Fieldname naming convention

Dahua Lin
The naming rules discussed in this issue has been implemented. 

If your codes depend directly on fields of the distributions, please update the codes accordingly. Direct use of the fields is not a recommended practice. Generally, we recommend people to use the `params` instead, which would return a tuple comprised of the parameters.

Best,
Dahua


On Thursday, July 30, 2015 at 8:53:34 AM UTC+8, Dahua Lin wrote:
I am also going to enforce consistent behaviors of common methods:

<a href="https://github.com/JuliaStats/Distributions.jl/issues/396" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2FJuliaStats%2FDistributions.jl%2Fissues%2F396\46sa\75D\46sntz\0751\46usg\75AFQjCNGEsmXPcCAvfHeMuCNPnO1ATVyJJQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2FJuliaStats%2FDistributions.jl%2Fissues%2F396\46sa\75D\46sntz\0751\46usg\75AFQjCNGEsmXPcCAvfHeMuCNPnO1ATVyJJQ&#39;;return true;">https://github.com/JuliaStats/Distributions.jl/issues/396

Dahua


On Thursday, July 30, 2015 at 8:13:54 AM UTC+8, Dahua Lin wrote:
As part of the efforts in cleaning up the Distributions package, I would like to enforce a consistent naming convention to Distribution field names.

Please see the discussion here: <a href="https://github.com/JuliaStats/Distributions.jl/issues/395" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2FJuliaStats%2FDistributions.jl%2Fissues%2F395\46sa\75D\46sntz\0751\46usg\75AFQjCNH6Aygeic298FgzqQQqyLS39PHiUA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2FJuliaStats%2FDistributions.jl%2Fissues%2F395\46sa\75D\46sntz\0751\46usg\75AFQjCNH6Aygeic298FgzqQQqyLS39PHiUA&#39;;return true;">https://github.com/JuliaStats/Distributions.jl/issues/395

Please feel free to bring your opinions to the discussion. I may work on this over the weekend or next week.

Dahua

--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.