vvvv / VL-Language

The official repo for the design of the VL programming language
31 stars 0 forks source link

[Proposal] Enum Flags Attribute shall have an influence on node set #13

Open gregsn opened 4 years ago

gregsn commented 4 years ago

All imported enums already come with the bitwise operations |(bitwise or) &(bitwise and) ^(bitwise xor).

We should probably import those only on enums that come with the [Flags] attribute like seen here.

Look: this is nonsense. callmenames-2020-06-18-Application_2020 06 18-19 04 40

You still can import them manually, but by default, they don't get imported.

TBD: Is this a breaking change we can sell?

sebllll commented 4 years ago

i propose 2 separate things: Flag and Enum. And then let the user decide if bitwise ops are wanted and choose accordingly. the system would then allow the bitwise operators only for Flags.

That clear distinction would be quite consistent and the end-user story is also super simple:

When importing from c#, the same distinction can be made.

gregsn commented 4 years ago

sounds good to me.