Re: Am I reading this wrong, or is std.getopt *really* this stupid?

2018-03-23 Thread Chris Katko via Digitalmars-d
On Saturday, 24 March 2018 at 03:04:41 UTC, Andrei Alexandrescu wrote: On 3/23/18 7:29 PM, H. S. Teoh wrote: Well, looking at the implementation of std.getopt turned up the disturbing fact that the program's argument list is actually scanned *multiple times*, one for each possible option(!). B

Re: What are AST Macros?

2018-04-06 Thread Chris Katko via Digitalmars-d
Sorry if this is "re-opening" an old thread, but did anything come from this and DIP50? It seems like a really interesting concept and this thread was one of the first results for a Google search. Thanks.

Re: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, [your code here]

2018-04-06 Thread Chris Katko via Digitalmars-d
I want to know whose bright idea it was to turn l33tspeak into a programming language.

Thoughts on Herb Sutter's Metaclasses?

2018-04-09 Thread Chris Katko via Digitalmars-d
https://www.youtube.com/watch?v=6nsyX37nsRs I'm really happy with the way languages are finally progressing. I've said for years that we should be able to program the "rules" (e.g. code guidelines) that programmers then abide by, so that they are statically checked. DScanner is an example. B

Re: Thoughts on Herb Sutter's Metaclasses?

2018-04-09 Thread Chris Katko via Digitalmars-d
One more note: It seems like this would be heaven for trying out new language features without having to "manually" add them into the compiler first. By hijacking the syntax to AST stage, we can add new constructs with real-functioning code, and have others evaluate themselves and unit test the

Re: Thoughts on Herb Sutter's Metaclasses?

2018-04-10 Thread Chris Katko via Digitalmars-d
On Tuesday, 10 April 2018 at 05:55:06 UTC, Joakim wrote: On Tuesday, 10 April 2018 at 01:21:07 UTC, Chris Katko wrote: [...] See previous forum thread on the topic, with Walter chiming in a bit too: https://forum.dlang.org/thread/kglnxqbcugerhynng...@forum.dlang.org Wow, that thread had v