You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this can be very hard to read when the name is long, e.g BitStringHistgram will be convert to bistringhistgram instead of bitstring_histgram. I think it is very hard to follow Julia's style guide on function naming when doing this automatically, so maybe @receipt should just convert all camel case type name to snake case function, which is much clearer on the mapping rules and much easier to read.
This discussion was converted from issue #1538 on August 22, 2024 23:25.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
currently
@receipt
simply convert a camel case type name into lowercase functions,https://github.com/JuliaPlots/Makie.jl/blob/9a4821bcaf1cf0f09841e659dd2a6eb81afe6527/MakieCore/src/recipes.jl#L3
this can be very hard to read when the name is long, e.g
BitStringHistgram
will be convert tobistringhistgram
instead ofbitstring_histgram
. I think it is very hard to follow Julia's style guide on function naming when doing this automatically, so maybe@receipt
should just convert all camel case type name to snake case function, which is much clearer on the mapping rules and much easier to read.Beta Was this translation helpful? Give feedback.
All reactions