onelang / OneLang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated code issues - first round

koczkatamas opened this issue · comments

  • Go: non-primitive fields should be pointer types
  • Java: one public class per file
  • Java: fix fast compilation's loading issue
  • Java: import java.util.ArrayList & import java.util.Arrays
  • Java / Generic: use converted type: Onearray arr -> ArrayList<Integer>
  • Java: arr[i] -> arr.get(i)
  • Perl: arrays should be prefixed with @ and not $
  • Swift: set field type
  • Swift: find out how to handle optional values
  • Swift: non-mutated fields should be let and not var (or disable warning?)
  • Swift: i++ -> i += 1
  • Swift: remove semicolons (;)?
  • TS/JS: non-mutated fields should be const and not let (low prio)
  • C++: non-primitive fields should be pointer types
  • C++: auto arr = std::make_shared<std::vector<int>>(std::vector<int>({ 1, 2 }));
  • C++: item access: (*arr)[i]
  • Fix double semicolon (;) issues
  • Perl, Python, Ruby: convert comments to #-type ones