
Aug. 5, 2020
9:41 p.m.
On Wed, 5 Aug 2020 at 20:10, Ethan Furman <ethan@stoneleaf.us> wrote:
--> from aenum import Constant
--> class K(Constant): ... a = 5 ...
This is exactly what I intended. Think if you're able to do: from aenum import const @const a = 5 Notice that I'm using the "at" char because I can't find a better character. I give the rest to your imagination: # previous declarations of x in the same scope are a SyntaxError @var x = None # simulate electrical circuit c = a @nand b # Java style @final class A: @protected _x = 0 # ...maybe someday @int a = 1