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

Use 'if' instead of ':' in the x = any iterable if condition #59

Closed jp-fizzbee closed 3 months ago

jp-fizzbee commented 3 months ago

Support code like

y = any [1, 2, 3] if x != y

Because this looks more python like.

In standard python, for statements have if.

# valid python
x = 2
y = [ k for k in [1, 2, 3] if x != k ]