sam
73
I vote no. But if everyone else wants to…
IIRC I tried reformatting the code to 100 columns when I was initially fiddling with clang-format and rejected it in favour of 80 columns, 100 columns is a bit too hard to use on a 13" laptop screen in my opinion (esp, if you want 2 windows side by side). Horizontal scrolling in code is an awful thing to have to do.
The biggest reason to say no, is that if we change it to 100, clang-format will make the following changes and mess up the commit history.
module/edit_mode.c | 42 ++----
module/flash.c | 21 ++-
module/globals.h | 9 +-
module/help_mode.c | 31 ++---
module/keyboard_helper.h | 15 +--
module/line_editor.c | 3 +-
module/line_editor.h | 3 +-
module/live_mode.c | 9 +-
module/main.c | 22 +---
module/pattern_mode.c | 28 ++--
module/preset_r_mode.c | 14 +-
module/preset_w_mode.c | 4 +-
module/usb_disk_mode.c | 9 +-
simulator/tt.c | 4 +-
src/command.c | 7 +-
src/ops/ansible.c | 328 ++++++++++++++++++++-------------------------
src/ops/controlflow.c | 45 +++----
src/ops/delay.c | 13 +-
src/ops/hardware.c | 122 ++++++++---------
src/ops/justfriends.c | 42 +++---
src/ops/maths.c | 99 +++++---------
src/ops/metronome.c | 35 +++--
src/ops/op.c | 116 ++++++++--------
src/ops/op.h | 37 ++----
src/ops/patterns.c | 226 +++++++++++++++----------------
src/ops/queue.c | 39 +++---
src/ops/stack.c | 24 ++--
src/ops/telex.c | 483 +++++++++++++++++++++++++++++++------------------------------------
src/ops/telex.h | 3 +-
src/ops/variables.c | 42 +++---
src/scanner.h | 3 +-
src/state.c | 31 ++---
src/state.h | 26 ++--
src/table.c | 89 ++++++-------
src/teletype.c | 25 ++--
src/teletype.h | 12 +-
tests/op_mod_tests.c | 20 +--
tests/parser_tests.c | 3 +-
tests/process_tests.c | 10 +-
The original Teletype code base had too much nesting (sorry @tehn), keeping the lines short helps to prevent that IMO. Anyway it can’t be as bad as the Linux style guide, which is 80 columns wide, but with 8 character tabs…
@scanner_darkly is there something in particular that’s causing problems?