lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]





On Tue, Aug 26, 2014 at 9:40 AM, Steven Degutis <sbdegutis@gmail.com> wrote:
+1 for leaving it lua_State

On Sun, Aug 24, 2014 at 3:02 PM, Thijs Schreijer
<thijs@thijsschreijer.nl> wrote:
> As "lua_State" not actually refers to a state, but to a thread or an execution stack, could it be renamed? To something that properly reflects what it is?
>
> I suspect that the name was introduced before coroutines were added, which meant that a state and a thread were pretty much the same thing then.
>
> Thijs
>


I would be in favor of no name changes. Naming is hard because it is an activity in search of the most correct answer and there is only a "mostly" correct answer.

An observation: I spend more time differentiating between a "Lua thread" and an "OS thread". Thread is the right word, but OS threads make the distinction tedious.

-Andrew