You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of us have been sparse in adding comments in the sBTC contracts because of a "worry" that heavily commenting the code will in the end lead to increased read_count costs. (I know, premature optimisation.) Still, it got us talking about types of comments that would not survive a deploy. If something like that existed then we could be a lot more generous with comments and take a more "literate programming" approach to describing the intent of routines that are useful during development but not once deployed.
We thought about some ways, for example comments that are prefixed by thee semi-colons ;;; could be filtered out. Although that could probably affect existing code bases, so perhaps a different suggestion would be needed.
;; This comment will be part of deployment;;; This comment won't be.
Thoughts? Does it make sense to have a feature such as this in Clarinet? Or would it be possible to run a pre-deployment TS script in which we can filter such comments?
The text was updated successfully, but these errors were encountered:
Hey @MarvinJanssen , have you seen my previous comment?
I'll close this one, feel free to add a comment on stacksgov/sips#32 or re-open this on if you think it's more relevant
Some of us have been sparse in adding comments in the sBTC contracts because of a "worry" that heavily commenting the code will in the end lead to increased read_count costs. (I know, premature optimisation.) Still, it got us talking about types of comments that would not survive a deploy. If something like that existed then we could be a lot more generous with comments and take a more "literate programming" approach to describing the intent of routines that are useful during development but not once deployed.
We thought about some ways, for example comments that are prefixed by thee semi-colons
;;;
could be filtered out. Although that could probably affect existing code bases, so perhaps a different suggestion would be needed.Thoughts? Does it make sense to have a feature such as this in Clarinet? Or would it be possible to run a pre-deployment TS script in which we can filter such comments?
The text was updated successfully, but these errors were encountered: