[tbb-bugs] #26184 [Applications/Tor Browser]: Think about using `const` as much as possible in Torbutton code

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu May 24 14:01:40 UTC 2018


#26184: Think about using `const` as much as possible in Torbutton code
--------------------------------------+--------------------------
 Reporter:  gk                        |          Owner:  tbb-team
     Type:  task                      |         Status:  new
 Priority:  Medium                    |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:  tbb-torbutton             |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+--------------------------

Comment (by mcs):

 I am not sure if we should use `const` everywhere we can. Is Mozilla doing
 this? Here is an article that makes for interesting reading; especially
 look at the "Liberal let" and "Constantly const" sections. What to do
 probably comes down to personal preference, but as a team it would be good
 to adopt some guidelines.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26184#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tbb-bugs mailing list