Naming of the customized functions
See original GitHub issueHi Alex,
From #14,
- the default renamer setup is
StandardMemberRenamer
which is basically transforming a camel/pascal case identifier to a lowercase+underscore identifier- you could also use
context.MemberRenamer = new DelegateMemberRenamer(name => name)
; and it should just work without changing “Title” and “title”.- Note that this rename doesn’t affect the renamer used for all the builtins
My question is,
Suppose my C# customized function is named as MyCustomizedFunction
, it will be available as mylib.my_customized_function
normally, right?
and if I’ve used context.MemberRenamer = new DelegateMemberRenamer(name => name)
, it will be available as-is as mylib.MyCustomizedFunction
, right?
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Naming guidelines for custom functions in Excel
Excel uses uppercase letters for built-in function names (such as SUM ). Use uppercase letters for your custom function's name and id as...
Read more >Custom output function naming conventions
Follow these naming conventions for custom output functions: Write in camel case with the first letter in uppercase, for example DestinationFilePath().
Read more >Defining a custom function
Note: This name must be unique for all custom functions in the current project. The name of the function is not case sensitive...
Read more >Is there a naming convention for user defined function type?
Yes, adding the Func suffix to the type name is common and communicates its purpose well. Look at the standard lib for examples:....
Read more >Lets talk naming conventions for Custom functions/modules
Lets talk naming conventions for Custom functions/modules. Hi. I am undertaking a small project to create custom functions and modules under ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a working sample:
It is similar to how it is done for builtin functions:
The difference for builtin functions is that they are created by default in the TemplateContext constructor and pushed (context.PushGlobal) as a global context… but you can have your nested context as well.
From the example above you could choose for example to expose these functions through a “myfunctions.DownCase” for example:
Thank you so much!!!