LastExceed
05/02/2021, 3:12 PMconst
need to be specified explicitly? can't the compiler check automatically if the keyword is applicable ? or is there a scenario where you wouldn't want its optimizations ?Adam Powell
05/02/2021, 3:17 PMconst
gets compiled into call sites. If you're writing a library, the value of const
properties is part of your binary compatibility contract and you can't change the values of those constants across versions without breaking other compiled codeLastExceed
05/02/2021, 3:20 PMCLOVIS
05/02/2021, 9:03 PMconst
shouldn't be too much of a differenceMichael Böiers
05/03/2021, 6:40 AM