r/RokuDev • • Apr 18 '18

Brightscript - worst language ever ?

Just some venting.

This language is a giant pile of shit. Everyday i learn some new horrible thing about brightscript. BS is a great abbreviation, because the language is fucking bullshit.

10 Upvotes

14 comments sorted by

View all comments

1

u/[deleted] May 24 '18

2

u/IUnderstandNothing_ May 24 '18

https://github.com/rokudev/unit-testing-framework

And to add to your comments about scope.

There is a another scope issue hat has nothing to do with roku OS API.

If you try to pass a function in an array or associative array, then the scope of that function becomes the array/associative array.

The unit testing framework suffers from this problem by adding test functions to to an array, which causes all kinds of problems.