www.ncameron.org
In this blog post I'll lay out what I think procedural macros should look like. I've discussed the syntax elsewhere, and I'll discuss the API we make available to procedural macros in a later blogpost. I've previously outlined the whole sco...
News & Blog Posts
2015-12-21
~6 min read
www.ncameron.org
I would like to improve the syntax for both macros by example and procedural macros. For macros by example, there is a soft backwards compatibility constraint: although new macros do not have to be backwards compatible with old macros, they...
News & Blog Posts
2015-12-14
~6 min read
www.ncameron.org
Note, I'm not sure of the terminology for some of this stuff, so I might be making horrible mistakes, apologies. Usually, when we talk about macro hygiene we mean the ability to not confuse identifiers with the same name but from different...
News & Blog Posts
2015-11-30
~3 min read
www.ncameron.org
In this post I want to give a bit of an overview of the changes I'm planning to propose for the macro system. I haven't worked out some of the details yet, so this could change a lot. To summarise, the broad thrusts of the redesign are: cha...
News & Blog Posts
2015-11-30
~9 min read
ncameron.org
In the next few blog posts I want to cover some areas for improvement for Rust macros. I'll drill down into one topic at a time. I'll propose solutions, but not in RFC-levels of detail. I hope to get lots of early feedback this way, rather...
News & Blog Posts
2015-11-23
~7 min read
ncameron.org
In the last blog post I introduced macros and some general issues. In this post I want to describe macros (and other syntactic tools) in Rust. In the next instalment, I'll go into hygiene and implementation issues in more detail, and cover...
News & Blog Posts
2015-11-09
~4 min read
www.ncameron.org
(Continuing from last time). procedural macros Also known as syntax extensions or syntax plugins or compiler plugins (which they are just a category of). I'll not get into the naming thing here, but I'll try and stick to 'procedural macro'....
News & Blog Posts
2015-11-09
~6 min read
www.ncameron.org
Previously I covered macro_rules and procedural macros. In this post I'll cover macro hygiene in a bit more detail. In upcoming posts, I'll cover modularisation for macros, some implementation details, some areas where I think we should imp...
News & Blog Posts
2015-11-09
~11 min read
www.ncameron.org
Design patterns are "general reusable solutions to a commonly occurring problem within a given context in software design". Design patterns are a great way to describe some of the culture and 'tribal knowledge' of programming in a language....
News & Blog Posts
2015-10-26
~1 min read
www.ncameron.org
Rustfmt is a tool for formatting Rust code. It has seen some rapid and impressive development over the last few months, thanks to some awesome contributions from @marcusklaas, @cassiersg, and several others. It is far from finished, but it...
News & Blog Posts
2015-10-12
~5 min read
www.ncameron.org
We're currently planning an overhaul of the syntax extension and macro systems in Rust. I thought it would be a good opportunity to cover some background on macros and some of the issues with the current system. (Note, that we're not consid...
News & Blog Posts
2015-10-12
~4 min read
www.ncameron.org
I'm Nicholas Cameron, an independent consultant, software engineer, and Rust educator. I'm known online as nrc. I offer software development consulting, and coaching and support to help clients learn and adopt Rust. I have specific expertis...
Slides and talks from RustCamp!
2015-08-03
~1 min read
www.ncameron.org
If you're learning Rust, you've no doubt been amazed at how awesome the language is and will be keen to write more Rust code. Hopefully, you'll also want to make a meaningful contribution to the community. If you're not sure how best to do...
Notable Links
2015-04-13
~5 min read