A feature I’d like to see in Hopscotch is: Static Methods - Using methods (custom actions) as a variable
I’d use it for this type of project: Literally Everything
Here are some examples of Hopscotch code that could be improved if we had this: No need to run a custom action, send the result into a variable, get the variable, then use the variable, and finally empty the variable for next use.
I’ve programmed in C#, so I understand what you mean by static methods. If I understand it right, you want to be able to have rainbow blocks return a variable so you can use the rainbow block directly as a variable.
So, you could do like:
[define rainbow block]
<rainbow block code here>
return (Some calculation, variable, etc)
[end of rainbow block]
Set text to (<You can then put the rainbow block directly here>)
I hope I understood it right. This would be really good to have! It would make rainbow blocks more similar to most text-based programming languages. On the other hand, it is possible to do this today by simply putting the “Set text”-block in the rainbow block, but as I said, it would make the rainbow blocks more like functions in text-based programming languages.