Multiline comment in Elixir

Elixir does not have multiline comments. However, one very common use case for multiline comments is documenting modules and functions, for which you can use the module attributes @doc and @moduledoc together with heredocs. defmodule MyModule do @moduledoc “”” This module is great at X “”” @doc “”” Frobnicates the given string. “”” def frobnicate(s) … Read more

Commenting code that is removed [closed]

Generally, code that is removed should not be commented, precisely because it clutters the codebase (and, why would one comment on something that doesn’t exist?). Your defect tracking system or source control management tools are where such comments belong.

Comments in T4 Templates

To include comments as part of control code, they need to be inside a code block of some sort, for example <# // Hello this is a comment #> or <#+ // Hello this is a comment in a class feature block #> Sometimes you need to push the close tag to the next line … Read more