New in ChoiceScript: *create_array, *temp_array commands, *page_break_advertisement

If anyone is curious how much simpler these commands can make your code, check out this CSLIB patch: Simplify code with array creation commands by CareyJWilliams · Pull Request #48 · ChoicescriptIDE/cslib · GitHub

That’s a nett reduction of 164 lines of code, without losing any functionality! :smiley:
I personally think the readability improves a lot as well, in most cases at least.

The only thing I thought when writing that is that perhaps I should have included a *set_array as well …, oh well, next time, maybe :wink:

2 Likes

Thanks for fixing the trigonometric functions too!

2 Likes

Bit late to the party, but so happy to find that arrays now exist - this is huge and can change everything.

3 Likes

Does anyone know if this syntax works in visual studio code? It doesn’t seem to registering as a command in my code. Am I missing a plugin update or something? Thanks!

ETA: Okay, so it isn’t supported, but the old way of doing arrays works. So I did that instead.