r/code • • Dec 06 '23

Help Please Mark functions/portions of code as experimental?

Hello, I was wondering if there is any plug-in or something on vscode or pycharm that lets you set a visual highlight on functions that you have written and want to leave in your code to work on them later but want to mark them as experimental? That would be useful for me

3 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/deftware Coder Dec 06 '23

Well in C/C++ you just use an #ifdef to separate what's actually used from what's prototypical/experimental so you can have two versions of the same function(s) between release builds and development builds, among a multitude of other possibilities such functionality enables. I imagine there's something similar in whatever language you're using considering that preprocessor macros are 40 years old, and as handy as ever, just like programming itself is.