AndreVanDelft / scala

The SubScript extension to the Scala programming language
http://www.subscript-lang.org/
12 stars 1 forks source link

Add "execute" method to event handling code fragments #33

Open AndreVanDelft opened 10 years ago

AndreVanDelft commented 10 years ago

For event handling code fragments add a method "execute", so that these will be easier to use, without explictly refer to a CodeExecutor. I already used this new method in the paper submitted to the Scala Workshop 2014.

anatoliykmetyuk commented 10 years ago

Actually I don't think it is a good idea to pollute the traits with lots of convenience methods. They should go to special traits that are optional for mixing.

AndreVanDelft commented 10 years ago

Now you say... Maybe just a method execute(...) in the Predef object would do. As you are refactoring the VM, I'll leave it to you. BTW We would need to update the paper accordingly, but it is not a big issue.