Re: [dev] [dwm] Style changes

From: Raphaël Proust <raphlalou_AT_gmail.com>
Date: Fri, 10 Apr 2015 12:00:10 +0200

On 10 April 2015 at 07:26, Lee Fallat <ircsurfer33_AT_gmail.com> wrote:
> A little off topic, but food for thought.
>
> […]

There was a time when Abstract-Syntax editor were hype (see
https://en.wikipedia.org/wiki/Structure_editor for some very limited
background). They have fallen out of fashion though…

They left some legacy on the text editors (in vim, the `%`, `]]`,
`a]`, `a)`, `it`, &c. moves come to mind, the surround plugin too).


Some tools allow handling of the abstract syntax. For example spatch
(https://github.com/facebook/pfff/wiki/Spatch) allow you to write
patches that are applied to the symbol tree rather than the actual
text. These are off-line (i.e. non-interactive) counterparts to the
editor you muse about: they are the `sed` to your imagined `vi`.


There is also the Go approach: pipe code through the go-fmt tool
before committing. (Not compulsory, but some project adopt it as a
convention.) This ensures that all committed code is formatted
according to The Rules.



Cheers,
-- 
______________
Raphaël Proust
Received on Fri Apr 10 2015 - 12:00:10 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 10 2015 - 12:12:07 CEST