C2 forum
		General Category => Ideas => Topic started by: acbaile on September 22, 2018, 03:54:39 AM
		
			
			- 
				deleted
			
 
			
			- 
				Yes, good one. The choice is between 2 sides:
- C-style: all arguments are explicitt.
 - C++ style: the 'this' argument is implicit.
 
Both have advantages:
C: allows developer to name 'this' variable
C: does not beak C model of implicit stuff
C++: less typing
In the end, the not breaking of the C model was the most important one..
			 
			
			- 
				The explicit argument is fine, the only thing I'm not sure of is the dot separator because at a glance I read that as accessing a variable.
I've thought of using the :: separator of C++:
func void Point::add(Point* p, i32 x) { 
   p.x = x; 
}
This adds quite a bit of readability for me.
			 
			
			- 
				What did you study? Arts? A + is simply a +.