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
I am going to implement a new convention in which all functions that rely on trait-dispatch will have a name that begins with _. This property will be bijective:
If a function relies on trait-dispatch, it will have a name that begin with _
If a name begins with _, it will be the name of a function that relies on trait-dispatch
Before I can implement this convention, I will need to remove ALL names that begin with an underscore by renaming them to names that do not begin with underscores. By "names", I not only mean functions but also types, global variables, etc.
Once I have removed all names that begin with an underscore, I will close this issue. Then, I can begin adding functions that rely on trait-dispatch.
There will be only ONE exception to this rule: __init__() functions. These functions are required by Julia to be named __init__(), so I will have to keep that name. There will be no other exceptions.
Here are some code snippets that I can run in the REPL in order to find any names that begin with an underscore:
for x innames(Main; all=true, imported=true)
ifstartswith(strip(string(x)), "_")
println(x)
endend
for x innames(Main.MyExampleModule; all=true, imported=true)
ifstartswith(strip(string(x)), "_")
println(x)
endend
for x innames(MyExampleModule; all=true, imported=true)
ifstartswith(strip(string(x)), "_")
println(x)
endend
The text was updated successfully, but these errors were encountered:
I am going to implement a new convention in which all functions that rely on trait-dispatch will have a name that begins with
_
. This property will be bijective:_
_
, it will be the name of a function that relies on trait-dispatchBefore I can implement this convention, I will need to remove ALL names that begin with an underscore by renaming them to names that do not begin with underscores. By "names", I not only mean functions but also types, global variables, etc.
Once I have removed all names that begin with an underscore, I will close this issue. Then, I can begin adding functions that rely on trait-dispatch.
There will be only ONE exception to this rule:
__init__()
functions. These functions are required by Julia to be named__init__()
, so I will have to keep that name. There will be no other exceptions.Here are some code snippets that I can run in the REPL in order to find any names that begin with an underscore:
The text was updated successfully, but these errors were encountered: