eerolanguage / eero

Eero was a fully binary- and header-compatible dialect of Objective-C, implemented with a modified version of the Apple-sponsored LLVM/clang open-source compiler. It featured a streamlined syntax, Python-like indentation, and other features that improve readability and code safety. It was inspired by languages such as Smalltalk, Python, and Ruby.
https://web.archive.org/web/20171101134337/http://eerolanguage.org/
288 stars 7 forks source link

Default method variable names in interfaces are ugly #13

Closed andyarvanitis closed 12 years ago

andyarvanitis commented 12 years ago

Currently, the compiler generates ugly default variable names in interfaces (not in implementations). For example:

interface MyClass
   setObject id, withObject id  // generates var names "objectA", "objectB"
end

This was done avoid compiler warnings in interfaces for multiple parameters with the same name. The problem with these names occurs when the compiler emits other errors or warnings and references these names. At the very least, the first occurrence should not have any suffix (e.g. "object", "objectA").

andyarvanitis commented 12 years ago

Fixed properly this time. Names are param__1, param__2, etc. (number based on param position, not occurrences).