
Henrik writes:
To that, I also see a need to add some lightweight conventions for markup of explanatory text. E.g. I'd like to be able to mark variable names, emphasize a piece of text, and maybe include small code fragments.
Absolutely. We need a way to include a (hyperlinked) reference to a code entity from the documentation, and that means separate markup for type constructors, data constructors, and module names (and possibly in the future class names; at the moment they share the type constructor namespace), and if we're being really anal about it, variables/type variables.
Jan propses to use conventions like 'xxx' for variable names and "zzz" for emphasis (I think). That's probably reasonable, and I indeed use the 'xxx' convention in my own comments sometimes. But one should be aware that this useage can conflict with the normal meaning of the quote characters. In particular, other lightweight emphasis conventions like _yyy_ or *zzz* spring to mind.
one that springs to mind for me is @Name@, but I don't really mind as long as it's non-ambiguous and doesn't cause parsing headaches. Cheers, Simon

Jan propses to use conventions like 'xxx' for variable names and "zzz" for emphasis (I think). other lightweight emphasis conventions like _yyy_ or *zzz*
one that springs to mind for me is @Name@, but I don't really mind as long as it's non-ambiguous and doesn't cause parsing headaches.
Would there be any difficulty in permitting _all_ of the common ASCII emphasis styles? For instance, "name" and _name_ could be italic, *name* could be bold, 'name' and @name@ could be hyperlinked bold, or some such. In fact, it wouldn't really matter which style was rendered in what manner - different tools could do it differently if they chose. (Ok, except maybe hyperlinking would have to be defined.) I do see one potential difficulty with the single-quoted 'name' style - the common use of identifiers with a single or double prime on the end. But in practice I think a tool can easily recognise that name' is just a name, and not a name followed by unbounded emphasis. Regards, Malcolm
participants (2)
-
malcolm-hs@cs.york.ac.uk
-
Simon Marlow