Talk:Nasal Loops: Difference between revisions

 
 
Line 29: Line 29:


--[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 11:40, 15 September 2018 (EDT)
--[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 11:40, 15 September 2018 (EDT)
== Deprecation warning ==
If the API is indeed deprecated, it would make sense to overload settimer() using a maketimer() based wrapper, and maybe rename _settimer() in future releases, showing a log message whenever it is still being used. As I said before, it would not be such a bad idea to introduce a cleaner namespace for addons, where APIs that are known to be problematic are simply removed from the namespace (namely, settimer and setlistener for now), so that best practices can be better enforced - besides, it would not be that much work to review existing addons and fix them up accordingly. Personally, I don't think that aircraft should have access to settimer() at all, it's far too low-level for most aircraft developers - they should have only access to maketimer, and in the interim, settimer() could be wrapped showing a warning that it is in the process of being phased out. People still wanting to use settimer, would have to use the C extension function directly, i.e. __settimer().
--[[User:Hooray|Hooray]] ([[User talk:Hooray|talk]]) 11:52, 15 September 2018 (EDT)