From 00a52e3d631df0a7610f4f17a9bd6d60205239fd Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Mon, 4 Aug 2025 08:46:49 +0200 Subject: vault backup: 2025-08-04 08:46:49 --- It is not possible to do a chain assignment.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 It is not possible to do a chain assignment.md (limited to 'It is not possible to do a chain assignment.md') diff --git a/It is not possible to do a chain assignment.md b/It is not possible to do a chain assignment.md new file mode 100644 index 0000000..419c5dc --- /dev/null +++ b/It is not possible to do a chain assignment.md @@ -0,0 +1,7 @@ +[[Rust]] +[[Statement vs expression]] + +Because a statement does not have a return value it is not possible to do +`let x = (let y = 6)` + +Also `let x = y = 6;` is not possible because now `y` is never defined. \ No newline at end of file -- cgit v1.2.3