aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter1_functions/lesson10_deprecations/en.html
blob: 8fe260f32ed713fecb3735659edb3df1f7014094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<p>
  Functions and other definitions can be marked as deprecated using the
  <code>@deprecated</code>
  attribute.
</p>
<p>
  If a deprecated function is reference the compiler will emit a warning,
  letting the programmer know they ought to update their code.
</p>
<p>
  The deprecation attribute takes a message and this will be displayed to the
  user in the warning. In the message explain to the user the new approach or
  replacement function, or direct them on documentation on how to upgrade.
</p>