fizzbee-io / fizzbee

Easiest-ever formal methods language! Designed for developers crafting distributed systems, microservices, and cloud applications
https://fizzbee.io
Apache License 2.0
150 stars 8 forks source link

Allow creating multiple roles on the same line. #76

Open damnMeddlingKid opened 2 months ago

damnMeddlingKid commented 2 months ago

Currently if we try to make multiple assignments of roles single line we get an error.

action Init:
    accounts = [Account(name=customer), Account(name="Bob")]

> panic: Creating multiple roles in single step is not supported yet

The work around is to assign roles on multiple lines which is kind of awkward

action Init:
    accounts = []
    accounts.append(Account(name="Alice"))
    accounts.append(Account(name="Bob"))