The town may obtain short-term loans and shall repay such loans by December 31 each year, unless otherwise provided by law.