opentofu/website/docs/configuration
Martin Atkins ae3c0c6a4a lang/funcs: Remove the deprecated "list" and "map" functions
Prior to Terraform 0.12 these two functions were the only way to construct
literal lists and maps (respectively) in HIL expressions. Terraform 0.12,
by switching to HCL 2, introduced first-class syntax for constructing
tuple and object values, which can then be converted into list and map
values using the tolist and tomap type conversion functions.

We marked both of these functions as deprecated in the Terraform v0.12
release and have since then mentioned in the docs that they will be
removed in a future Terraform version. The "terraform 0.12upgrade" tool
from Terraform v0.12 also included a rule to automatically rewrite uses
of these functions into equivalent new syntax.

The main motivation for removing these now is just to get this change made
prior to Terraform 1.0. as we'll be doing with various other deprecations.
However, a specific reason for these two functions in particular is that
their existence is what caused us to invent the idea of a "type expression"
as a distinct kind of expression in Terraform v0.12, and so removing them
now would allow potentially  unifying type expressions with value
expressions in a future release.

We do not have any current specific plans to make that change, but one
potential motivation for doing so would be to take another attempt at a
generalized "convert" function which takes a type as one of its arguments.
Our previous attempt to implement such a function was foiled by the fact
that Terraform's expression validator doesn't have any way to know to
treat one argument of a particular function as special, and so it was
generating incorrect error messages. We won't necessarily do that, but
having these "list" and "map" functions out of the way leaves the option
open.
2020-11-04 17:05:59 -08:00
..
functions lang/funcs: Remove the deprecated "list" and "map" functions 2020-11-04 17:05:59 -08:00
attr-as-blocks.html.md Minor spelling fixes 2019-06-13 15:36:14 +01:00
backend.html.md website: Configuration Language navigation refactoring 2020-06-18 09:31:52 -07:00
data-sources.html.md docs: Fix typo (provider arg in data source) (#26802) 2020-11-04 09:55:15 -04:00
dependency-lock.html.md website: Initial docs for the new dependency lock file behaviors 2020-10-09 09:26:23 -07:00
expressions.html.md Correct annotation in expressions.html 2020-08-14 16:33:54 -04:00
functions.html.md website: Version notes: Add new -> old links to 0.12 language docs (except function pages) 2019-02-01 17:20:54 -08:00
index.html.md website: Update all Learn crosslinks (#26442) 2020-10-02 11:02:59 -07:00
locals.html.md website: Clarify locals vs. local.thing distinction 2020-09-02 14:31:19 -07:00
modules.html.md Small spelling improvement 2020-10-26 19:50:21 +01:00
outputs.html.md Update docs for output sensitivity change 2020-10-06 14:26:16 -04:00
override.html.md website: Version notes: Add new -> old links to 0.12 language docs (except function pages) 2019-02-01 17:20:54 -08:00
provider-requirements.html.md website: one more provider name typo 2020-10-30 17:35:23 -07:00
providers.html.md configs: deprecate version argument inside provider configuration blocks (#26135) 2020-09-08 08:19:00 -04:00
resources.html.md website: for_each doesn't implicitly convert to set (#26450) 2020-11-02 11:13:51 -08:00
style.html.md website: Version notes: Add new -> old links to 0.12 language docs (except function pages) 2019-02-01 17:20:54 -08:00
syntax-json.html.md website: Don't claim that things are "very easy" 2020-10-26 10:02:38 -07:00
syntax.html.md website: Don't claim that things are "very easy" 2020-10-26 10:02:38 -07:00
terraform.html.md Website: 0.13 docs edits, mostly around provider requirements (#25686) 2020-07-30 21:07:36 -07:00
types.html.md configs: Experimental support for optional object type attributes 2020-10-12 10:12:28 -07:00
variables.html.md website: Don't claim that things are "very easy" 2020-10-26 10:02:38 -07:00
version-constraints.html.md website: clarify version constraint syntax 2020-10-30 17:44:48 -07:00