C
C#2y 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
Thinker2y ago
nope
LazyGuard
LazyGuardOP2y ago
okay thanks
Callum
Callum2y 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
Jimmacle2y ago
who decided we needed whitespace in function names in any language gross
Angius
Angius2y ago
I just hope Kotlin implements PHP's variable variables one day when
Accord
Accord2y ago
Closed!
Want results from more Discord servers?
Add your server