[Python-ideas] Operator as first class citizens -- like in scala -- or yet another new operator?

Yanghao Hua yanghao.py at gmail.com
Fri May 24 16:25:12 EDT 2019


On Fri, May 24, 2019 at 5:45 PM Terry Reedy <tjreedy at udel.edu> wrote:
> What I understand is that you are doing discrete-time hardware
> simulation and that you need a operator that will schedule future
> assigments to int-like objects.  Have you considered using '@' to do
> that?  int @ int-expression is currently invalid, so defining it will
> not interfere with other int operations.  What am I not understanding?

I am not sure if I understood this. The intention is to e.g. assign a
signal with a value in a nature way, e.g. signal <== 5, are you saying
to replace <== with @? I guess that should work (signal @ 5), not
really intuitive though. I really really would like either a equal
sign or something like an arrow ... I know I am a bit picky ...


More information about the Python-ideas mailing list