C2 forum

General Category => Ideas => Topic started by: lerno on October 22, 2018, 09:41:37 PM

Title: Expression blocks
Post by: lerno on October 22, 2018, 09:41:37 PM
GNU has an extremely useful extension in expression blocks using ({ ... })

The suggestion I have is to allow C2 to implement those as a standard. There are a few ways to pick the syntax (that I can think of):

Also note that the value-returning macro becomes easy to express for the versions with explicit return. It's simply a macro wrapped in an expression block.