I didn't mean no inlining :), I was just talking about the format:

class A
{
public:
  inline int hello {
    return 4;
  }
};

vs.

class A
{
public:
  inline int hello();
};

inline int A::hello()
{
  return 4;
}

--
- Milan

On 2014-01-09, at 16:21 , Ehsan Akhgari <ehsan.akhg...@gmail.com> wrote:

> ...
> 
>> As another example, I wish we didn't allow this kind of inlining in the 
>> first place; I find having that makes it difficult to read (it takes longer 
>> to scan the class to see what it has in it, because there are the 
>> implementation details in there.)  So, it's already hard for me to read, and 
>> the white space doesn't really make any difference at that point.
> 
> Unfortunately, C++ makes that kind of hard to avoid for performance reasons.

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to