Re: stack-oriented programming idioms Yoda not from ?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: stack-oriented programming idioms Yoda not from ?
- From: David Kastrup <dak@...>
- Date: 2011年1月25日 13:37:03 +0100
Tony Finch <dot@dotat.at> writes:
> On 2011年1月25日, David Kastrup wrote:
>> Tony Finch <dot@dotat.at> writes:
>> > On 2011年1月24日, Patrick Mc(avery wrote:
>> >>
>> >> There are languages such as Forth, Factor and Joy to borrow
>> >> idioms from. Do
>> >> you think these idioms might be useful to learn when using the C API?
>> >
>> > I'm dubious because Lua's stack allows random access whereas forth-alikes
>> > do not.
>>
>> What would you call PICK and ROLL then?
>
> Random access in Lua means that you mostly don't need those operators.
In sexist circles this argument would be classified as female logic.
Given the location and circumstances, I am reduced to calling it
interesting.
--
David Kastrup