-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add more examples for cat
#47409
Add more examples for cat
#47409
Conversation
FWIW, #46429 recently tried to provide examples of different cats, in increasing order of complexity, without unduly wasting vertical space. The assumption in the existing docs, preserved there, was that you ought to understand Maybe E.g. maybe showing strings is nice, because that is where the word comes from. But if it does, why spend lines defining a, b etc, and make multiple blocks... and not just say something like: julia> cat("a", "bcd"; dims=2) # does not join strings!
1×2 Matrix{String}:
"a" "bcd" |
I have another thought: maybe we should make a difference between the help message and the documentation page. cat in Matlab
The help message printed out by
For short help messages, I agree with this.
I think this is a style of programming, though probably better suited to documentation pages. Of course, defining a variable is only necessary if the variable will be used multiple times, mainly to make the comparison of cases clearer. It may be necessary to open a separate issue to discuss whether the documentation for each function needs to be a separate page. |
Yes, this is a larger discussion, and perhaps should be opened up as an issue. We clearly do need longer form api documentation, but it is not always a good idea to have that in the |
The manual page is pretty good, BTW, slowly building up what concatenation means: |
I have an issue talking about documentation of each function being a separate page: JuliaDocs/Documenter.jl#1922 |
There is a notion of |
cat
2 2D arrayscat
2 3D arrayscat
2 strings