MeteoSwiss-APN / dawn

Compiler toolchain to enable generation of high-level DSLs for geophysical fluid dynamics models
MIT License
28 stars 30 forks source link

syntax for output parameters to function calls #365

Open twicki opened 6 years ago

twicki commented 6 years ago

cosunae: With C++-17 structured bindings feature,(supposedly available in clang 4) https://clang.llvm.org/cxx_status.html

we can improve the semantic of input/output in the function call

auto [u_tens_stage, v_tens_stage] = horizontal_advection::uv( u_stage, v_stage, tgrlatda0,
tgrlatda1);
twicki commented 6 years ago

thfabian: While I like this syntax, I think there are some open questions.

Stagno commented 4 years ago

@twicki @cosunae Is this still useful?

twicki commented 4 years ago

so this is still possible - especially now that we've upgraded. I think we should keep it around if we feel like this would increase readability

Stagno commented 4 years ago

ok, still up then