[Python-ideas] Operator as first class citizens -- like in scala -- or yet another new operator?
Cody Piersall
cody.piersall at gmail.com
Thu May 23 02:32:11 EDT 2019
On Wed, May 22, 2019 at 4:32 AM Yanghao Hua <yanghao.py at gmail.com> wrote:
> I have experimented by adding two new python operators, left arrow: <-
> and right arrow ->, which users can define their behaviors. and it
> still looks like kind of the non-blocking assignment operators in
> hardware description languages (e.g. verilog <=). Also it could be
> used to build data flows like a -> b -> c -> d -> ...
I think the idea for using the left arrow is a non-starter, since it's
already valid Python syntax to write
x <- 3
today. ("-" being a unary operator and all).
That said, I would be really happy to have a clean way to write HDL in
Python, so good luck! Time to check out MyHDL...
Cody
More information about the Python-ideas
mailing list