C
C#3y ago
LazyGuard

✅ Naming functions using strings

In Kotlin, it is possible to name function as strings surrounded by . Thus we can have white spaces etc. Is there a way to do a similar thing using C# ?
6 Replies
Thinker
Thinker3y ago
nope
LazyGuard
LazyGuardOP3y ago
okay thanks
Callum
Callum3y ago
Oh my god... that's sacrilege... but what if we did an IDictionary of string, delegate and then we created an CallFunction library that takes the function name and the function parameters as the parameters... though can you do it natively... probably not
Jimmacle
Jimmacle3y ago
who decided we needed whitespace in function names in any language gross
Angius
Angius3y ago
I just hope Kotlin implements PHP's variable variables one day when
Accord
Accord3y ago
Closed!

Did you find this page helpful?