29216, "dlongnecke-cray", "Should procs in the 'DynamicLoading' module be type methods or standalone?", "2026-08-04T17:58:03Z"
This is a child issue of #27687.
In discussing ergonomics for new methods being added to the DynamicLoading module, the question came up as to whether the new procedures should be type methods or standalone, top-level procedures at module scope.
E.g.,
module DynamicLoading {
// In the first case, 'libSuffix' is at the top level module scope.
proc libSuffix() {}
record library {
// In the second case, 'libSuffix' is a type method.
proc type libSuffix() {}
}
}
One point brought up in discussion is that there is not much precedent for the type method case based on module reviews we've done in the past.
A point in favor of the type method is that it makes names more succinct because the context for the name is implied by the type (e.g., library.libSuffix could become library.suffix).