classes in inline_scripts
in OpenSesame
Does it make sense to write code in classes in inline_scripts?
Does it make sense to write code in classes in inline_scripts?
Comments
Hi @_nina_ ,
There is no fundamental difference between writing classes in
inline_scriptsor in regular Python scripts: it is possible, but whether it makes depends on what you need to implement, and your preferred coding style. Personally, I tend not to do this very often, because most functionality that I need in experiments is simple enough that it doesn't really benefit from classes.Hope this helps!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!