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

Method declaration syntax #23

Closed pcperini closed 12 years ago

pcperini commented 12 years ago

if i may bring up one valid subpoint of @amcgregor's issue: the plus indicator should probably retain it's counterpart, -, for instance methods.

maybe it's just a personal preference, but i often use the two at quick glances for determining (obviously) whether or not the method is a class or instance method. not having it also throws the spacing off (-;

andyarvanitis commented 12 years ago

It is still allowed (though optional), but I will keep this issue open to give it more thought. Readability rather than terseness is the goal, after all.

adfernandes commented 12 years ago

Just a vote of agreement on the... The plus and minus thing make scanning code much easier!

pcperini commented 12 years ago

oh! didn't know it was optional! (i'm also a big fan of paren-wrapping statements. lots of lovely syntactical sugar here!)