I recently encountered this syntax:
UIView *view=({
UIView *view = [[UIView alloc] initWithFrame:CGRectZero];
view.backgroundColor = [UIColor greenColor];
view;
});
This might well be a duplicate but I don't know what to search for.
- What is this syntax known as?
- Has it always been supported or is it a recent addition?
- Is it considered good or bad practice?
- Are there any gotchas?