Hi, I've also playing with functional objects e.g. objects that updates
functionally meaning that the objects are non mutating. I added a little
suger to handle this in my python to prolog compiler and now we can do this:
module(f)
# Note that the functional parent means that the class is managed
On 9 September 2017 at 08:25, Stefan Israelsson Tampe
wrote:
> def gen(l):
> def f(x):
> yield(gen) x
>
Whoa. You're yielding from a different frame?!
--
William Leslie
Notice:
Likely much of this email is, by the nature of copyright, covered
under copyright law. You absolutely M
FYI I just added generators with a small extension, to the python compiler,
now this works:
module(f)
def foreach(f,l):
for x in l:
f(x)
def gen(l):
def f(x):
yield(gen) x
foreach(f,l)
for x in gen(list(1,2,3)):
pk(x)
>> 1,2,3
Have fun
On Fri, Sep 1, 2017 at 1
On 8 September 2017 at 11:39, William ML Leslie
wrote:
> https://docs.python.org/3/library/importlib.html#module-importlib
>
Hmm I could have said something similar about Java's classloaders or
OSGi or E's eMakers (eMakers are even better, though require more work
to feel guiley).
--
William Le
On 2 September 2017 at 06:45, Stefan Israelsson Tampe
wrote:
> form is either specified or current-language and what I propose is to add a
> knob that enables another version of the default for from e.g. something
> like the following.
>
> (define %extension-map '((("py" "python") python) ((("pl"
> On Sep 2, 2017, at 6:00 AM, Matt Wette wrote:
>
>
>> On Sep 1, 2017, at 1:45 PM, Stefan Israelsson Tampe
>> wrote:
>>
>> Hi,
>>
>> I am maintaining a prolog->scheme compiler and a python->scheme compiler.
>> The nice thing with those implementation is that they work well with the
>> gui
> On Sep 1, 2017, at 1:45 PM, Stefan Israelsson Tampe
> wrote:
>
> Hi,
>
> I am maintaining a prolog->scheme compiler and a python->scheme compiler. The
> nice thing with those implementation is that they work well with the guile
> module system and are proper scheme functions and variables