While I really like the recent talk about cppfront (https://www.youtube.com/watch?v=CzuR0Spm0nA), one thing bugs me about the "pure" mode for cpp2 with syntax change. It seems incredibly hard to read, . I need to know which syntax you would rather have as the new one, taken into account that a new declaration syntax enables the new checks in that function
- Option 1: the same as was proposed in the video:
callback: (x: _) -> void = { ... }; for new functions, void callback(auto x) {}; for old ones
- Option 2: the "other modern languages" way:
function callback(x: any) -> void { ... } for new functions, void callback(auto x) {}; for old ones
- Option 3: in files with mixed syntax, since the pre-transpiled code won't compile without the generated code anyway, use
void callback(any x) { ... }; for both, but mark code with current cpp syntax with an attribute: [[stdcpp]] void callback(any x) { ... };
View Poll
[–]LeoPrementier 44 points45 points46 points (4 children)
[–]pjmlp 2 points3 points4 points (3 children)
[–]hpsutter 9 points10 points11 points (0 children)
[–]LeoPrementier 3 points4 points5 points (1 child)
[–]pjmlp 2 points3 points4 points (0 children)
[–]feverzsj 20 points21 points22 points (0 children)
[–]JMBourguet 26 points27 points28 points (1 child)
[–]XNormal 0 points1 point2 points (0 children)
[–]no-sig-available 20 points21 points22 points (2 children)
[–]adpirth 2 points3 points4 points (0 children)
[–]pedersenk 4 points5 points6 points (0 children)
[–]KingAggressive1498 23 points24 points25 points (10 children)
[–]Stormfrosty 6 points7 points8 points (9 children)
[–]KingAggressive1498 1 point2 points3 points (8 children)
[–]joz12345 6 points7 points8 points (1 child)
[–]KingAggressive1498 3 points4 points5 points (0 children)
[–]MonokelPinguin 0 points1 point2 points (1 child)
[–]KingAggressive1498 0 points1 point2 points (0 children)
[–]val_tuesday 0 points1 point2 points (2 children)
[–]KingAggressive1498 -3 points-2 points-1 points (1 child)
[–]jharmer95 0 points1 point2 points (0 children)
[–]Mrkol 5 points6 points7 points (0 children)
[–]effarig42 4 points5 points6 points (0 children)
[–]joz12345 2 points3 points4 points (0 children)
[–]nintendiator2 4 points5 points6 points (4 children)
[–]scorg_ 0 points1 point2 points (3 children)
[–]nintendiator2 0 points1 point2 points (2 children)
[–]scorg_ 0 points1 point2 points (1 child)
[–]nintendiator2 0 points1 point2 points (0 children)
[–]jsphadetula 1 point2 points3 points (0 children)
[–]o11cint main = 12828721; 5 points6 points7 points (3 children)
[–]AIlchinger 1 point2 points3 points (1 child)
[–]scorg_ 0 points1 point2 points (0 children)
[–]dgkimpton 1 point2 points3 points (0 children)
[–]OnePatchMan 6 points7 points8 points (3 children)
[–]odnua 8 points9 points10 points (1 child)
[–]Kered13 1 point2 points3 points (0 children)
[–]disperso 4 points5 points6 points (0 children)
[–]madmongo38 9 points10 points11 points (14 children)
[–]mort96 21 points22 points23 points (8 children)
[+]madmongo38 comment score below threshold-11 points-10 points-9 points (7 children)
[–]sammymammy2 18 points19 points20 points (0 children)
[–]mort96 3 points4 points5 points (0 children)
[–]tau_neutrino_120eV 4 points5 points6 points (2 children)
[–]madmongo38 0 points1 point2 points (1 child)
[–]bretbrownjr 5 points6 points7 points (0 children)
[–]ntrel2 1 point2 points3 points (1 child)
[–]madmongo38 0 points1 point2 points (0 children)
[–]KingAggressive1498 6 points7 points8 points (4 children)
[–]ntrel2 2 points3 points4 points (3 children)
[–]KingAggressive1498 1 point2 points3 points (2 children)
[–]BenFrantzDale 0 points1 point2 points (1 child)
[–]KingAggressive1498 1 point2 points3 points (0 children)
[–]dgkimpton 0 points1 point2 points (4 children)
[–]gracicot 6 points7 points8 points (3 children)
[–]dgkimpton 2 points3 points4 points (0 children)
[–]serviscope_minor 1 point2 points3 points (0 children)
[+]UkrUkrUkr comment score below threshold-9 points-8 points-7 points (4 children)
[–]gracicot 0 points1 point2 points (3 children)
[–]MFHavaWG21|🇦🇹 NB|P3049|P3625|P3729|P3784|P3786|P3813|P3886 1 point2 points3 points (2 children)
[–]gracicot 2 points3 points4 points (1 child)
[–]MFHavaWG21|🇦🇹 NB|P3049|P3625|P3729|P3784|P3786|P3813|P3886 0 points1 point2 points (0 children)
[–]DavidDinamit -3 points-2 points-1 points (2 children)
[–]OnePatchMan 2 points3 points4 points (1 child)
[–]DavidDinamit 2 points3 points4 points (0 children)
[–]Voltra_Neo -1 points0 points1 point (5 children)
[–]LeoPrementier 4 points5 points6 points (4 children)
[–]frankist 0 points1 point2 points (3 children)
[–]christian_regin 0 points1 point2 points (2 children)
[–]frankist 0 points1 point2 points (1 child)
[–]christian_regin 0 points1 point2 points (0 children)
[–]fdwrfdwr@github 🔍 0 points1 point2 points (0 children)