Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Suggestion: Avoid showing people what *not* to do #31

Open
mark-summerfield opened this issue Mar 6, 2017 · 2 comments
Open

Suggestion: Avoid showing people what *not* to do #31

mark-summerfield opened this issue Mar 6, 2017 · 2 comments

Comments

@mark-summerfield
Copy link

In http://docs.julialang.org/en/latest/manual/types.html
in the "Value Types" section it gives an example of a Val type and then at then end says "you would never want to write actual code as illustrated above". This doesn't make any sense -- why show what people shouldn't do? I suggest mentioning the concept and then linking to a more "advanced" section of the manual and in that section, show an example that actually makes sense.

@yuyichao
Copy link
Contributor

yuyichao commented Mar 6, 2017

Those are simple and clear examples showing how it works and the correct way to use it is described in the section linked http://docs.julialang.org/en/latest/manual/performance-tips.html#Types-with-values-as-parameters-1 .

@yuyichao
Copy link
Contributor

yuyichao commented Mar 6, 2017

also, these should be reported to https://github.com/JuliaLang/julia instead.

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

No branches or pull requests

2 participants