Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

From: Dimitris Papastamos <>
Date: Sun, 4 Jan 2015 16:37:06 +0000

> -Editor *editor_new(int width, int height) {
> +Editor *editor_new(int width, int height, int tabwidth, bool expandtab) {

I am not affiliated with vis or have any familiarity with it
but this doesn't make sense. I'd expect tabwidth/expandtab to be global
variables in this case as they affect global state.

This approach quickly doesn't scale if you want more parameters to
be configured by the user and skews the semantics of the function.
Received on Sun Jan 04 2015 - 17:37:06 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 04 2015 - 17:48:08 CET