exercism / fortran

Exercism exercises in Fortran.
https://exercism.org/tracks/fortran
MIT License
23 stars 30 forks source link

Remove unused variable from hamming stub code #163

Closed booniepepper closed 2 years ago

booniepepper commented 3 years ago

There's an i variable provided for the Hamming Code exercise, but it's not part of the function signature.

It's likely a user might also want an integer i, e.g. as an index to iterate characters as part of a do loop, but they also might want to call it index or ptr or something else equally reasonable.

My suggestion here is to remove it and let students decide their approach.

SaschaMann commented 2 years ago

Thanks!