noam-c/EDEn — Issue #13: Make Lua script bindings more strict
Author: noam-c
Created: 2011-12-03 08:59:06+00:00
State: open
Labels: Maintainability, Script Engine

Currently, Lua script function hooks aren't checking for parameters being of correct type. For the sake of catching issues with scripts early, these functions need to do strict type checking and potentially use a named parameter scheme, like in Ruby or C# 4.0. If a type mismatch is detected or a required parameter is missing, an exception should be thrown that logs the Lua error for the developer to look at, along with any diagnostic information that will help identify the problematic function call and the file in which it was found.