the.bay.news

Should global consts that are Refs be UPPER_SNAKE_CASE?

Julia Programming Language
Should global consts that are Refs be UPPER_SNAKE_CASE?
Should global consts that are Refs be UPPER_SNAKE_CASE? What do you think, and why? It seems that there is no consensus among existing code. The ecosystem is split: The docs say “follow Base” The 1.13-dev docs also say “use UPPER_SNAKE_CASE” Base is split: julia> filter(name -> getglobal(Base, name) isa Ref, names(Base,all=true)) 16-element Vector{Symbol}: :ACTIVE_PROJECT :C_NULL :ENABLE_PRECOMPILE_WARNINGS :HOME_PROJECT :LOADING_CACHE :MAX_NUM_PRECOMPILE_FILES :PKG_PRECOMPILE_HO...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.