Not logged inOpenClonk Forum
Up Topic ScriptGo, ScriptN, goto and ScriptCounter

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Sven2

> No, we couldn't. Not all high-level interfaces have a more powerful alternative interface in the engine. Don't argue against strawmen.


An interface can only be termed "high-level" if an associated low-level interface exists. Anyway, I'm not arguing terminology here. I'm defending the existence of interface that do not allow you to do more than an existing interface does, but that can solve specialized problems with less code effort.

You brought up valid points against such helpers, like the added complexity, additional maintenance work, or the risk that scripters run into the limits of the library. However, those have to be weighed against the benefit induced by having the helper. Because both cost and benefit differ for each library, each case has to be analyzed individually. And in my opinion, when weighing cost and benefits, benefits for a user far outweigh any costs for a developer, because the engine should primarily cater to its users and not to its developers.

In the case of the ScriptCounter, as you may have noticed, people who have scripted scenarios in the past just defended their existence, while the "cost" was so far only stated as "an ugly line in the game compilation code". If that line is really so ugly, then take your time and rewrite the thing in script. Maybe even improve the interface to allow for more flexibility. But don't just kill it.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill