Skip to content

Commit f079198

Browse files
committed
Try out defaulting functions' -> _ = expr; to -> expr;
Disclaimer: This is a "hey why not give it a try" super-speculative experiment, subject to potential rollback, but IMO intriguing enough to try even though it has restrictions on top-level =/== in the terse body contents Example: main: () = { x: std::vector<int> = (1, 2, 3); y: std::vector<int> = (0, 0, 0); std::transform(x.begin(), x.end(), y.begin(), :(x) -> x+1;); for y do (i) std::cout << i; }
1 parent 69fdefe commit f079198

File tree

3 files changed

+231
-133
lines changed

3 files changed

+231
-133
lines changed

regression-tests/test-results/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cppfront compiler v0.2.1 Build 8930:0819
2+
cppfront compiler v0.2.1 Build 8930:1743
33
Copyright(c) Herb Sutter All rights reserved
44

55
SPDX-License-Identifier: CC-BY-NC-ND-4.0

source/build.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"8930:0819"
1+
"8930:1743"

0 commit comments

Comments
 (0)