[ ArgumentList ] vs. @( ArgumentList )

Tobias Pankrath tobias at pankrath.net
Wed Nov 7 10:44:10 PST 2012


On Wednesday, 7 November 2012 at 18:28:54 UTC, Regan Heath wrote:

>> This is how that example would look like with my syntax:
>>
>> http://pastebin.com/8Ve5KS49
>>
>> I think it looks better in most cases
>
> For comparison the same again using @[]:
> http://pastebin.com/vgjLSXMv
>
> I actually think the pastebin syntax highlighting makes both of 
> them look worse (why the horrid green!).
>
> Here it is with no highlighting:
> http://pastebin.com/08judqWj
>
> R

I like Jacobs proposal more. On many keyboards are [ and ] 
notoriously hard to type . Despite that: please make any form of 
brackets optional. I wouldn't consider any possibly breaking 
changes in the future for two reasons:

First: New buildin UDA can go into modules and adhere to normal 
scoping rules.
Second: When the time comes, we'll hopefully have enough 
reengineering tools that can fully qualify any conflicting uses 
of a name automatically.




More information about the Digitalmars-d mailing list