Hi, On 29/09/2020 1:43 am, Emily Bowman wrote:
On Mon, Sep 28, 2020 at 7:23 AM Marco Sulla <Marco.Sulla.Python@gmail.com <mailto:Marco.Sulla.Python@gmail.com>> wrote:
On Mon, 28 Sep 2020 at 13:56, Nick Coghlan <ncoghlan@gmail.com <mailto:ncoghlan@gmail.com>> wrote: > For usage, whether something is a macro or not should either be irrelevant (when they're used as a more powerful function call or > decorator), or else entirely obvious from the way you use it (when they're defining a new pseudo-statement), so it doesn't make sense to > emphasize the syntactic marker too much.
IMHO `import!` can be easily confused with `import`, even with a monospace font. An alternative is that macro must have a name different from keywords (so you will have macro_import!, for example), even if I'd prefer my first proposal (maybe something like %import).
I think the whole point is that import! won't be obvious unless you're looking for it, and those macros won't be obvious unless you're looking for them. They're meant to blend in rather than stand out.
My assumption is that almost everyone uses an editor that has syntax highlighting. Macros will stand out just as much as the users of those editors think they should. Personally, I think they should be fairly prominent. But don't let me stop configuring your editor as you choose :) Cheers, Mark.