Once 1.0 drops, I think it might be fun to make a package of underscore aliases.
1 Like
I find camel case solving most of such problems.
2 Likes
I want to repeat an audacious suggestion made by someone I trust and respect (who might not want to be outed for it): what if - (just hear me out, ok?) - what if we silently ignored underscores in function names? That is, is_foo
would be transparently equivalent to isfoo()
. Sorta like how gmail deals with .
in its email addresses.
Yes, there are probably lots of arguments why this is a Bad Idea, all sorts of horror stories about What Will Break, but it’s an intriguing idea in any case.
I’ve decided to make a Readable.jl
package, that has nothing more than renaming of all base functions to have _
between words
i.e.
const is_valid = Base.isvalid
const has_length = Base.haslength
const has_method = Base.hasmethod
const hash_index = Base.hashindex
(at least for the exported ones)
4 Likes