[Chapel Merge] Advent of Code cleanup

Branch: refs/heads/main
Revision: e171533
Author: bradcray
Link: Unavailable
Log Message:

Merge pull request #19594 from bradcray/aoc-minor-cleanup

Advent of Code cleanup

[trivial, not reviewed]

Without internet access today, I had time to catch up on housekeeping
tasks that I could do local to my system, such as this long-intended
pass over my AoC codes to do some basic cleanup. The sorts of things
I did include:

  • using more idiomatic I/O in the early entries when I was still
    getting warmed up

  • reviewing commented out code to generally (a) put it within 'if
    debug' conditionals or (b) remove it. In a few cases, I left it
    as-is if it represented possible optimization opportunities that I
    haven't tried yet or other sketches that looked potentially useful
    to return to.

  • switched to slightly more idiomatic Chapel for control flow, such
    as 'if x == 2' rather than 'if (x == 2)'

  • probably some other minor tweaks as well, though most cases were as
    above.

    Modified Files:
    M test/studies/adventOfCode/2021/bradc/day1.chpl
    M test/studies/adventOfCode/2021/bradc/day11.chpl
    M test/studies/adventOfCode/2021/bradc/day11a.chpl
    M test/studies/adventOfCode/2021/bradc/day12.chpl
    M test/studies/adventOfCode/2021/bradc/day12a.chpl
    M test/studies/adventOfCode/2021/bradc/day13.chpl
    M test/studies/adventOfCode/2021/bradc/day14.chpl
    M test/studies/adventOfCode/2021/bradc/day14a.chpl
    M test/studies/adventOfCode/2021/bradc/day15.chpl
    M test/studies/adventOfCode/2021/bradc/day15a.chpl
    M test/studies/adventOfCode/2021/bradc/day16.chpl
    M test/studies/adventOfCode/2021/bradc/day16a.chpl
    M test/studies/adventOfCode/2021/bradc/day17a.chpl
    M test/studies/adventOfCode/2021/bradc/day18.chpl
    M test/studies/adventOfCode/2021/bradc/day18a.chpl
    M test/studies/adventOfCode/2021/bradc/day19.chpl
    M test/studies/adventOfCode/2021/bradc/day19a.chpl
    M test/studies/adventOfCode/2021/bradc/day1a.chpl
    M test/studies/adventOfCode/2021/bradc/day2.chpl
    M test/studies/adventOfCode/2021/bradc/day22a.chpl
    M test/studies/adventOfCode/2021/bradc/day23.chpl
    M test/studies/adventOfCode/2021/bradc/day23a.chpl
    M test/studies/adventOfCode/2021/bradc/day24.chpl
    M test/studies/adventOfCode/2021/bradc/day2a.chpl
    M test/studies/adventOfCode/2021/bradc/day3.chpl
    M test/studies/adventOfCode/2021/bradc/day3a.chpl
    M test/studies/adventOfCode/2021/bradc/day4.chpl
    M test/studies/adventOfCode/2021/bradc/day4a.chpl
    M test/studies/adventOfCode/2021/bradc/day5.chpl
    M test/studies/adventOfCode/2021/bradc/day5a.chpl
    M test/studies/adventOfCode/2021/bradc/day6.chpl
    M test/studies/adventOfCode/2021/bradc/day6a.chpl
    M test/studies/adventOfCode/2021/bradc/day7.chpl
    M test/studies/adventOfCode/2021/bradc/day7a.chpl
    M test/studies/adventOfCode/2021/bradc/day8.chpl
    M test/studies/adventOfCode/2021/bradc/day8a.chpl
    M test/studies/adventOfCode/2021/bradc/day9.chpl
    M test/studies/adventOfCode/2021/bradc/day9a.chpl

    Compare: Comparing 36cc12c6e01b...e1715332c454 · chapel-lang/chapel · GitHub